Permalink
Browse files

fix use of [] in lisp list

  • Loading branch information...
1 parent db1b3d3 commit 2cd11aaba503eae09d6f4207ff9a60fde6b130a4 @juhp juhp committed Feb 13, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 seed/Chapter2/Step_2_4.hs
View
2 seed/Chapter2/Step_2_4.hs
@@ -28,7 +28,7 @@ page = slideDeck "Chapter 2: Lists"
"In various Lisp dialects, this would look like:"
[ "nil -- the empty list"
, "(cons 42 nil) -- a list of one value"
- , "(cons 1 (cons 2 (cons 3 []))) -- a list of three values"
+ , "(cons 1 (cons 2 (cons 3 nil))) -- a list of three values"
]
, codeSlide "Watch out: Haskell's : ≠ Lisp's cons"
"In Lisp, cons puts any two things together. Not so in Haskell. In \

0 comments on commit 2cd11aa

Please sign in to comment.