On Thu, Aug 20, 2009 at 12:45 AM, samppi <rbysam...@gmail.com> wrote:

>
> For me, I'd like it if the core functions had the "data" as the first
> argument, but have a special function—I can't come up with a better
> name than "partial-2"—so that (partial-2 function opt1 opt2 opt3) is
> equivalent to (fn [data] (function data opt1 opt2 opt3)). That way, I
> could do things like (map (partial-2 s/split #"\n" 30) vector-of-strs)
> without breaking .


Is there something wrong with (map #(s/split % #"\n" 30) vector-of-strs)?

The #(...) lambda read-macro seems to me to obviate most needs for partial
and partial-2.

--~--~---------~--~----~------------~-------~--~----~
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