On Wed, Nov 26, 2008 at 3:22 PM, Mark Volkmann <[EMAIL PROTECTED]> wrote: > > I'm curious about this syntax. I thought if #(function-name args) > creates a closure then I can put one in a variable and execute it > laterI entered this in a REPL. > > (def myClosure #(prn "Hello")) > > How can I execute the closure in myClosure now?
user=> (myClosure) "Hello" or now, user=> (trampoline myClosure) "Hello" --Chouser --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
