It's maybe more a matter of taste, but we have funtions like frest, rfirst, etc. We have dotimes. We have not=, not-any?, not-every?, etc. Even defn is a convenience macro that isn't strictly necessary.
I think that (maybe) people will come to Clojure expecting the "standard" list processing functions that you find in other languages, this includes something that removes nils, I know I did. I was a bit surprised that there wasn't a compact function. If it's not a popular idea, then it's not a big deal. Anyone can write this simple function for their own use. I just thought it was something that people might expect. Paul On Thu, Oct 16, 2008 at 4:01 PM, Chouser <[EMAIL PROTECTED]> wrote: > > On Thu, Oct 16, 2008 at 3:26 PM, Paul Stadig <[EMAIL PROTECTED]> wrote: > > > > 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))? > > I like how few functions clojure has built in (compared to say common > lisp). It think this is partly achieved through arity overloading, > but also careful choices about what to include based on how easy it is > to get what you need through composition. > > Is it really worth documenting and making everyone learn what > "compact" means, so that you can say: > > (compact coll) instead of: > (filter identity coll) ? > > --Chouser > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---