You're crazy :)

On Sun, Aug 18, 2013 at 9:04 PM, Chris Allen <callen.2...@gmail.com> wrote:
> Am I crazy or does this scream macro?
>
> On Saturday, August 17, 2013 6:02:03 PM UTC-7, Sean Corfield wrote:
>>
>> On Sat, Aug 17, 2013 at 5:43 PM, yair <yair...@gmail.com> wrote:
>> > What do you mean by currying in this context?  Is there a way to do this
>> > in
>> > clojure apart from using partial?
>>
>> (defn some-func
>>   ([a b c] (process a b c))
>>   ([a b]   (fn [c] (some-func a b c)))
>>   ([a]     (fn ([b] (fn [c] (some-func a b c)))
>>                ([b c] (some-func a b c)))))
>>
>> (some-func 1 2 3)
>> ((some-func 1 2) 3)
>> (((some-func 1) 2) 3)
>> ((some-func 1) 2 3)
>> --
>> Sean A Corfield -- (904) 302-SEAN
>> An Architect's View -- http://corfield.org/
>> World Singles, LLC. -- http://worldsingles.com/
>>
>> "Perfection is the enemy of the good."
>> -- Gustave Flaubert, French realist novelist (1821-1880)
>
> --
> --
> 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
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.



-- 
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/

"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to