Ugih Li <free...@gmail.com> writes: > (into '(1 2 3) '(3 2 1)) => (1 2 3 1 2 3) > (into [1 2 3] [3 2 1]) => [1 2 3 3 2 1]
`into` conj[oins] the items of the second collection to the first collection, and `conj` itself "adds" elements as it is most efficient for the given collections. For list, conj prepends, for vectors it appends. > (take-while even? [1 2 3 4]) => () > ? `take-while` takes as long as the given predicate returns logical true. In your example, (even? 1) is false, so it stops immediately. Maybe you want (filter even? [1 2 3 4]) => [2 4] instead? Bye, Tassilo -- 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