On 16 Mrz., 13:14, Rich Hickey <[email protected]> wrote: > On Mar 14, 11:26 am, Stuart Sierra <[email protected]> > wrote: > > > I've added a "seek" function to clojure.contrib.seq-utils: > > > (defn seek > > "Returns the first item of coll for which (pred item) returns > > logical true. > > Consumes sequences up to the first match, will consume the entire > > sequence > > and return nil if no match is found." > > [pred coll] > > (first (filter pred coll))) > > Sorry to jump in late, but one problem with seek is that it is a > homophone of seq. > > Did anyone consider ffilter or find-first?
In that case I would vote for ffilter. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
