Re: A little help needed in understnding anonymous functions

2009-08-27 Thread Sourav
] >    #(dosync >        (alter r + %) @r))) > >   -- Scott > > > > > > On Wed, Aug 26, 2009 at 2:40 PM, Sourav wrote: > > > Hi, > > > I'm new to clojure and came from a Lisp background. While learning I > > clojure I came accross the two different

A little help needed in understnding anonymous functions

2009-08-26 Thread Sourav
Hi, I'm new to clojure and came from a Lisp background. While learning I clojure I came accross the two different ways of creating anonymous functions ((fn ...) and #(...)). I tried to construct the accumulator function in clojure using these forms and this is what I wrote (this might seem naive