On Sat, Feb 7, 2009 at 9:16 PM, Jason Wolfe <jawo...@berkeley.edu> wrote:
>
> merge-with says it returns a map, but if you give it no arguments it
> gives you back nil instead of the empty map.
>
> In my code, I had something like:
>
> ((apply merge-with concat maps) key)
>
> and got NPE rather than "nil" when "maps" was empty.
>
> It looks like "merge" has the same issue too.
>

Neither merge nor merge-with says it works with no maps supplied.

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

Reply via email to