Re: Scala for-comprehension to Clojure

2015-11-26 Thread Mark Engelberg
>>>> Clojure. >>>> >>>> Hopefully someone will be able to aid me with the following (perhaps >>>> more familiar with Scala): >>>> >>>> Scala for comprehension is errr how to say "de-sugared" to series >>>&g

Re: Scala for-comprehension to Clojure

2015-11-26 Thread Rastko Soskic
;>> in for-comprehension >>> like: >>> *val *ns: Conv[List[Int]] = *for *{ // Conv is just alias for functions >>> of type B => (B, A) >>> x <- int // int is function again of type Conv >>> y <- int >>> xs <- ints(x) // this

Re: Scala for-comprehension to Clojure

2015-11-26 Thread Chris Murphy
need all the nuts and bolts, just some guideline for achieving > something similar > in Clojure. > > I am not lazy :) I've already eagerly researched a bit and got to this: Scala > for-comprehension to Clojure > <http://stackoverflow.com/questions/25655132/how-to-convert-thi

Re: Scala for-comprehension to Clojure

2015-11-26 Thread Gary Verhaegen
;- int // int is function again of type Conv >> y <- int >> xs <- ints(x) // this is just sequence of numbers >> } *yield *xs.map(_ * y) >> >> I don't need all the nuts and bolts, just some guideline for achieving >> something similar >> i

Re: Scala for-comprehension to Clojure

2015-11-26 Thread Torsten Uhlmann
) > > I don't need all the nuts and bolts, just some guideline for achieving > something similar > in Clojure. > > I am not lazy :) I've already eagerly researched a bit and got to this: Scala > for-comprehension to Clojure > <http://stackoverflow.com/question

Scala for-comprehension to Clojure

2015-11-26 Thread Rastko Soskic
hed a bit and got to this: Scala for-comprehension to Clojure <http://stackoverflow.com/questions/25655132/how-to-convert-this-map-flatmap-into-a-for-comprehension-in-clojure> But as you can see that is not really about having kind of generator function which is wrapped into flatMap call. Per