"interleave" with one argument

2013-02-15 Thread Denis Washington
itself, just like single-argument "+" and "*" do. Regards, Denis Washington [1] http://www.4clojure.com/problem/33 -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegro

Re: Sample application as showcase of Clojure DSL / Metaprogramming?

2011-09-25 Thread Denis Washington
Am 24.09.2011 23:17, schrieb alexey.petrushin: Hello, I'm learning Clojure (work mainly with Java and Ruby), interested in it after reading Paul Graham and watched very interesting presentation about persistent data structures by Rich Hickey. Speaking of Paul Graham, have you read "On Lisp"? It

Re: Why visible in-transaction changes?

2011-09-23 Thread Denis Washington
Am 23.09.2011 17:25, schrieb Stuart Halloway: I would have hoped that changes to refs during an transaction wouldn't affect the in-transaction value of the ref (that is, I would have liked the code to print 1, then 2). This way, the view of the program's state would always be guaranteed to be con

Why visible in-transaction changes?

2011-09-23 Thread Denis Washington
Hi, I really like the idea of grouping mutation in my programs into transactions in order to reduce the number of possible states make make reasoning about them easier (in the spirit of the mutable state discussion of [1]) and thought that Clojure's "dosync" + refs might be the ideal way to do thi