Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(248)

Side by Side Diff: Documentation/extending/scheme-tutorial.itely

Issue 295820044: EG: Slight changes concerning lists (Closed)
Patch Set: Created 7 years, 11 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 @c -*- coding: utf-8; mode: texinfo; -*- 1 @c -*- coding: utf-8; mode: texinfo; -*-
2 2
3 @ignore 3 @ignore
4 Translation of GIT committish: FILL-IN-HEAD-COMMITTISH 4 Translation of GIT committish: FILL-IN-HEAD-COMMITTISH
5 5
6 When revising a translation, copy the HEAD committish of the 6 When revising a translation, copy the HEAD committish of the
7 version that you are working on. For details, see the Contributors' 7 version that you are working on. For details, see the Contributors'
8 Guide, node Updating translation committishes.. 8 Guide, node Updating translation committishes..
9 @end ignore 9 @end ignore
10 10
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 @code{cdr} in turn is a shorter list. 281 @code{cdr} in turn is a shorter list.
282 282
283 There are many ways of creating lists. Perhaps the most common is 283 There are many ways of creating lists. Perhaps the most common is
284 with the @code{list} procedure: 284 with the @code{list} procedure:
285 285
286 @lisp 286 @lisp
287 guile> (list 1 2 3 "abc" 17.5) 287 guile> (list 1 2 3 "abc" 17.5)
288 (1 2 3 "abc" 17.5) 288 (1 2 3 "abc" 17.5)
289 @end lisp 289 @end lisp
290 290
291 As can be seen, a list is displayed in the form of individual elements 291 Representing a list as individual
292 separated by whitespace and enclosed in parentheses. Unlike a pair, 292 elements separated by whitespace and enclosed in parentheses
293 there is no period between the elements. 293 is actually a compacted rendition of the actual dotted pairs
294 constituting the list, where the dot and an immediately following
295 starting paren are removed along with the matching closing paren.
296 Without this compaction, the output would have been
297 @lisp
298 (1 . (2 . (3 . ("abc" . (17.5 . ())))))
299 @end lisp
294 300
295 A list can also be entered as a literal list by enclosing its 301 As with the output, a list can also be entered (after adding a
296 elements in parentheses, and adding a quote: 302 quote to avoid interpretation as a function call) as a literal
303 list by enclosing its elements in parentheses:
297 304
298 @lisp 305 @lisp
299 guile> '(17 23 "foo" "bar" "bazzle") 306 guile> '(17 23 "foo" "bar" "bazzle")
300 (17 23 "foo" "bar" "bazzle") 307 (17 23 "foo" "bar" "bazzle")
301 @end lisp 308 @end lisp
302 309
303 Lists are a central part of Scheme. In, fact, Scheme is considered 310 Lists are a central part of Scheme. In, fact, Scheme is considered
304 a dialect of lisp, where @q{lisp} is an abbreviation for 311 a dialect of lisp, where @q{lisp} is an abbreviation for
305 @q{List Processing}. Scheme expressions are all lists. 312 @q{List Processing}. Scheme expressions are all lists.
306 313
(...skipping 1293 matching lines...) Expand 10 before | Expand all | Expand 10 after
1600 #{ 1607 #{
1601 #x e8 a b #y b a e 1608 #x e8 a b #y b a e
1602 #}) 1609 #})
1603 1610
1604 \relative c''{ 1611 \relative c''{
1605 \pattern c8 c8\f 1612 \pattern c8 c8\f
1606 \pattern {d16 dis} { ais16-> b\p } 1613 \pattern {d16 dis} { ais16-> b\p }
1607 } 1614 }
1608 @end lilypond 1615 @end lilypond
1609 @end ignore 1616 @end ignore
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b