Question

Without Haskell's >> (monad replace?) operator, I can do this in scalaz:

val m3 = for {
  _ <- m1
  r <- m2
} yield r

Is there such an operator in Scalaz (6)? Once here, is there any auxillary operations like flatten/join, etc? Where are these defined?

Was it helpful?

Solution

There is >>=| with aliases >|> and *| defined in scalaz/MA.scala.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top