And what about lazy sequences? Is this behavior correct? user=> (lazy-seq ()) () user=> (empty (lazy-seq ())) nil user=> (empty (lazy-seq [])) nil
user=> (lazy-seq [1 2]) (1 2) user=> (empty (lazy-seq [1 2])) nil Thank you, Frantisek On 17 Bře, 13:54, Rich Hickey <richhic...@gmail.com> wrote: > On Mar 16, 7:13 pm, Mark Engelberg <mark.engelb...@gmail.com> wrote: > > > On Mon, Mar 16, 2009 at 3:54 PM, Frantisek Sodomka <fsodo...@gmail.com> > > wrote: > > > (empty (seq [1 2])) => nil > > > Now that there is the concept of empty sequences, maybe this should > > actually return an empty sequence, such as (). > > Yes. I've made (empty aseq) -> (), (empty non-IPersistentCollection) - > > > nil, svn 1331. > > Rich --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---