]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 4822: EG: Slight changes concerning lists
authorDavid Kastrup <dak@gnu.org>
Thu, 7 Apr 2016 13:35:43 +0000 (15:35 +0200)
committerDavid Kastrup <dak@gnu.org>
Wed, 13 Apr 2016 19:16:47 +0000 (21:16 +0200)
Just concerns Scheme-only matters.

Documentation/extending/scheme-tutorial.itely

index 40028ffb66b3691072334c630683f1fb31b3820d..fd0beaa9e19c17ac4e7f62f0ba923dd23fed84e7 100644 (file)
@@ -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")