On Thursday, October 9, 2014 10:38:42 AM UTC-4, Gary Verhaegen wrote: > > I have not checked the second edition yet, but when I read JoC, my > understanding was that seq is used specifically for an object that > implements ISeq and is used as such (i.e. by calling first and rest on it) > while sequence denotes any ordered collection. > > Under this interpretation, they are not interchangeable: seqs are not > collections, so they can't be sequences, and sequences are not seqs (though > most of them can be turned into seqs). Some non-sequences may also be > converted to seqs. > > "seqs are not collections"? Yow, that doesn't make any sense to me.
~~~clojure (coll? []) ;;=> true (coll? (seq [])) ;;=> false ;; `map` returns a seq, right? (class (map identity (range 3))) ;;=> clojure.lang.LazySeq (coll? (map identity (range 3))) ;;=> true ~~~ -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.