Single-argument versions of filter, every?, etc?

19 views
Skip to first unread message

Phil Hagelberg

unread,
Sep 17, 2010, 1:35:53 AM9/17/10
to cloju...@googlegroups.com
I wonder if it would be convenient to add single-argument arities to
filter and every? in clojure.core that use identity as a predicate?

I can create a ticket and patch if desired.

-Phil

Chouser

unread,
Sep 17, 2010, 10:40:06 AM9/17/10
to cloju...@googlegroups.com

I like it. Perhaps also 'take-while'?

--Chouser
http://joyofclojure.com/

Sean Devlin

unread,
Sep 17, 2010, 11:08:14 AM9/17/10
to cloju...@googlegroups.com
Might as well go all the way and do this for every FUNCTION that has predicate argument.


--
You received this message because you are subscribed to the Google Groups "Clojure Dev" group.
To post to this group, send email to cloju...@googlegroups.com.
To unsubscribe from this group, send email to clojure-dev...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/clojure-dev?hl=en.


Cosmin Stejerean

unread,
Sep 19, 2010, 9:33:34 PM9/19/10
to cloju...@googlegroups.com
On Fri, Sep 17, 2010 at 9:40 AM, Chouser <cho...@gmail.com> wrote:
> On Fri, Sep 17, 2010 at 1:35 AM, Phil Hagelberg <ph...@hagelb.org> wrote:
>> I wonder if it would be convenient to add single-argument arities to
>> filter and every? in clojure.core that use identity as a predicate?
>>
>> I can create a ticket and patch if desired.
>
> I like it.  Perhaps also 'take-while'?
>

+1

Reply all
Reply to author
Forward
0 new messages