+1. And I like compact as a name (my Ruby is showing). Stuart
> OK. Then next question. > > Is there some reason we don't have a "remove the nils" function in > the 'clojure namespace? > > Something like (filter #(identity %) coll) works, but would it be > possible to add a 'squeeze or 'compact function so we could do > something like (apply max (compact coll))? > > > Paul > > On Thu, Oct 16, 2008 at 3:22 PM, Stuart Halloway <[EMAIL PROTECTED] > > wrote: > > Hi Paul, > > I think the current behavior is reasonable. It is consistent across > all the numeric functions. And if the nil got into max by being a > sentinel value from some other function, I don't think there is a > right way to interpret it. > > Stuart > > > Currently, "(max 1 2 nil 4)" throws a NPE. Would it be reasonable to > > expect it to return "4"? Or is it right that it throws an NPE? > > > > Paul > > > > > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---