Skip to content

Instantly share code, notes, and snippets.

@dimitarg
Last active July 28, 2016 13:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dimitarg/b5ab88437ae1e3cbfcba59452c8f6209 to your computer and use it in GitHub Desktop.
Save dimitarg/b5ab88437ae1e3cbfcba59452c8f6209 to your computer and use it in GitHub Desktop.
package foo
import org.junit.Test
import scalaz._
import Scalaz._
import org.junit.Assert._
import org.hamcrest.CoreMatchers.is
class FoldTest {
@Test
def testStd() : Unit = {
// import scalaz.syntax.foldable._
// import scalaz.std.AllInstances._
val list = List(1,2,3)
val res: Int = list.fold()
}
}
@dimitarg
Copy link
Author

dimitarg commented Jul 28, 2016

does not compile, looks for fold in std TraversableOnce

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment