I\'ve been playing around with Scalaz to get a little bit of the haskell feeling into scala. To understand how things work in scala I started implementing various algebraic structures myself and came
I\'m trying to use scalaz validation in our project and have ran into a following situation: def rate(username: String, params: Map[String, String]): ValidationNEL[String, Int] = {
I edited the code below as I believe I had been combining the IterV objects incorrectly on top of the iter.next issue.
How do I use State to mimic the behaviour of List.zipWithIndex? What I have come up with so far (which doesn\'t work) is:
I\'m using scala-2.8.1 and scalaz-5.0. Can anyone explain exactly why a PartialApply1Of2 can be inferrred in the one case but not in the other?
Can anybody give an example of using scalaz Monad for a simple 开发者_开发技巧but non-trivial and practically useful task ?scalaz.Monad, and the family of related type classes, abstract some common fu
If I have an instance of Bifunctor[A,A] bf, a function f : A => A and a Boolean value p: def calc[A, F[_,_]: Bifunctor](p: Boolean, bf: F[A, A], f: A => A): F[A, A] = {
I found a blog post today that mention\'s scalaz\'s sequence function. Couldn\'t you do something as simple as:
I was p开发者_C百科laying around with ListW.<^>, the definition of which is as follows: def <^>[B: Zero](f: NonEmptyList[A] => B): B = value match {
I have a very large List[A] and a function f: List[A] => List[B]. I would like to split my original list into sub-lists with a maximum size, apply the function to each sublist in turn and then unsp