Jack Clay: use concatenate instead of juxtapose, better for students

This commit is contained in:
Matthias Felleisen 2014-09-24 19:33:42 -04:00
parent a41ba9d37f
commit 84f2c8e524
2 changed files with 3 additions and 3 deletions

View File

@ -508,7 +508,7 @@
@interaction[#:eval (bsl-eval) (range 0 10 2)]
}
@defproc[((beginner-append append) [x list?][y list?][z list?] ...) list?]{
Creates a single list from several, by juxtaposition of the items.
Creates a single list from several, by concatenation of the items.
@interaction[#:eval (bsl) (append (cons 1 (cons 2 empty)) (cons "a" (cons "b" empty)))]
}
@defproc[(length (l list?)) natural-number?]{
@ -801,7 +801,7 @@
@interaction[#:eval (bsl) (string-copy "hello")]
}
@defproc[(string-append [s string] ...) string]{
Juxtaposes the characters of several strings.
Concatenates the characters of several strings.
@interaction[#:eval (bsl) (string-append "hello" " " "world" " " "good bye")]
}
@defproc[(string=? [s string][t string][x string] ...) boolean?]{

View File

@ -48,7 +48,7 @@
("Lists"
@defproc[((intermediate-append append) [l (listof any)] ...) (listof any)]{
Creates a single list from several, by juxtaposition of the items.
Creates a single list from several, by concatenation of the items.
In ISL and up: @racket[append] also works when applied to one list or none.
@interaction[#:eval (isl)
(append (cons 1 (cons 2 empty)) (cons "a" (cons "b" empty)))