I'm working my way through "Programming Clojure" and got an unexpected
result with sequences:

user> (take 10 (filter even? (iterate inc 1)))
(2 4 6 8 10 12 14 16 18 20)
user> (take-while #(< % 10) (iterate inc 1))
(1 2 3 4 5 6 7 8 9)
user> (take 10 (filter #(< % 10) (iterate inc 1)))
; Evaluation aborted.

The first two work but the third one hangs.  Why?

   Thanks,
   Mike

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to