Timothy Baldridge <tbaldri...@gmail.com> writes: >> It's confusing that the REPL prints out a list structure when it's in >> fact a sequence: > > There's really only one key difference between seqs and lists is that > lists include a count private field.
That's true for any seq that's not created by calling seq on a list. Lists are their own seqs, i.e., calling seq on a list returns the given list again. --8<---------------cut here---------------start------------->8--- user> (let [l (list 1 2 3) s (seq l)] (identical? l s)) true --8<---------------cut here---------------end--------------->8--- That's because lists implement ISeq directly. 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