Hi,

On 16 Okt., 05:13, Timothy Pratley <[EMAIL PROTECTED]> wrote:
> Just a few follow on questions...
> 1) Is there any way to do away with the input bindings altogether? map
> doesn't need input bindings, but memfn does. I don't quite grasp why
> they are needed for memfn, or how to construct an input binding based
> on the number of collections. ie: I would need to generate a list of
> symbols the size of the number of collections (map gensym colls) ????
> I know that code wont work, but there must be a way.

Maybe you find this helpful: http://paste.lisp.org/display/67182

  (map #(jcall "Timothy" 'substring %1 %2) (iterate inc 0) [3 4 5])

Please note, that the annotation does not allow variadic application
while jcall does. It's trivial to cut arguments, eg.

  #(jcall obj 'method %1 fixed-arg %2 another-fixed %&)

Sincerely
Meikel

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

Reply via email to