On Dec 15, 12:30 pm, Mon Key <s...@derbycityprints.com> 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 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to