summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Kastrup <dak@gnu.org>2016-04-07 15:35:43 +0200
committerDavid Kastrup <dak@gnu.org>2016-04-13 21:16:47 +0200
commit934175b31d43c95e341b098f12c2e833522a5d45 (patch)
treee370c800923084b1bfa2fc0b838e113883950b72
parentd4756c74976a991bd80cf757f774e5525d0830cb (diff)
Issue 4822: EG: Slight changes concerning lists
Just concerns Scheme-only matters.
-rw-r--r--Documentation/extending/scheme-tutorial.itely17
1 files changed, 12 insertions, 5 deletions
diff --git a/Documentation/extending/scheme-tutorial.itely b/Documentation/extending/scheme-tutorial.itely
index 40028ffb66..fd0beaa9e1 100644
--- a/Documentation/extending/scheme-tutorial.itely
+++ b/Documentation/extending/scheme-tutorial.itely
@@ -288,12 +288,19 @@ guile> (list 1 2 3 "abc" 17.5)
(1 2 3 "abc" 17.5)
@end lisp
-As can be seen, a list is displayed in the form of individual elements
-separated by whitespace and enclosed in parentheses. Unlike a pair,
-there is no period between the elements.
+Representing a list as individual
+elements separated by whitespace and enclosed in parentheses
+is actually a compacted rendition of the actual dotted pairs
+constituting the list, where the dot and an immediately following
+starting paren are removed along with the matching closing paren.
+Without this compaction, the output would have been
+@lisp
+(1 . (2 . (3 . ("abc" . (17.5 . ())))))
+@end lisp
-A list can also be entered as a literal list by enclosing its
-elements in parentheses, and adding a quote:
+As with the output, a list can also be entered (after adding a
+quote to avoid interpretation as a function call) as a literal
+list by enclosing its elements in parentheses:
@lisp
guile> '(17 23 "foo" "bar" "bazzle")