Hi guys,

I fall out in many situations that I want the partial, but inversed, a
simple example:

Let's say I wanna all primes bellow 2.000:

(take-while (partial > 2000) primes)

In this case, that's ok, but I don't expressed myself write, I because I had
to use the oposite of < to create the partial, I wanna do something:

(take-while (rpartial < 2000) primes)

In the case of <> it's ok because they are reverse of each other, but in
some circustances there is no reverse function, and you finish can't be
using partial, instead you do like:

(take-while #(< % 2000) primes)

I mean, there is no such function on default that works as reversed
arguments partial (appending partial arguments at end instead of beginning)?

If it don't, is not a good idea to have one?
---
Wilker LĂșcio
http://about.me/wilkerlucio/bio
Kajabi Consultant
+55 81 82556600

-- 
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
Note that posts from new members are moderated - please be patient with your 
first post.
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