Thanks for the responses, guys.

>> - Partially apply a function to any of its arguments, not just the
>> first one

>That's already the case, haven't you made a little test ?

I meant I want to apply it out of sequence, sorry.

> You can easily partially apply to other arguments by doing this: #(fred %1
> some-arg %2 other-arg).

That makes sense, thanks, though it's not any easier to unapply than
partial. I guess I could make a new 'partial-like' function that
returns code to apply a function, with nil's in unapplied argument
slots... ?

> Not possible as far as I know. Could you please explain use cases you have
> in mind for such a feature ?

Sure, it's the lazy cells I've been working on. When a cell's parent
changes, I don't want it to compute right away- I want it to register
the fact that the parent has changed, switch to an 'unevaluated'
state, and 'unapply' its childrens' update functions on itself.

I won't explain how I'm doing it right now for fear of muddying the
waters, but it feels overcomplicated and un-idiomatic.

Thanks,
Anand
--~--~---------~--~----~------------~-------~--~----~
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 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to