Hello,
I've become quite fond of applicative functors in Haskell, so I was
trying to figure out how they can be used in Scala.
I came across the applicative module in scalaz, and I found some
examples of its use at:
http://scalaz.googlecode.com/svn/artifacts/latest/demo/scalazdemo/control/Applicative.scalaHowever, these examples don't work with the latest version of scalaz.
In particular, syntactic sugar operators like <*> seem to have been
dropped. I've been trying to figure out how to use it without the
sugar, but I confess that so far I haven't succeeded (guess I don't
really understand applicative functors).
Can anyone tell me how I might try to express something like
some(7) <*> (some(8) > add2)
using the latest version of scalaz?
Many thanks,
Rob