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 <[email protected]> wrote: > On Mar 16, 7:13 pm, Mark Engelberg <[email protected]> wrote: > > > On Mon, Mar 16, 2009 at 3:54 PM, Frantisek Sodomka <[email protected]> > > 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---
