On Dec 15, 12:30 pm, Mon Key <[email protected]> wrote:
> > > > I would expect (flatten nil) => nil
>
> Why?

Sorry, Mon Key, but I have to agree with Randall here.  All the
sequence-related functions (first, rest, filter, map, etc.) return nil
for nil.  If flatten is returning a sequence, I expect it to do the
same, especially because:

(seq []) => nil
(flatten []) => nil
(seq nil) => nil

In the case of flatten, I think this is rarely going to make any
difference, but I'll patch it.

-Stuart Sierra

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to