Advertisement
Guest User

Untitled

a guest
Jun 20th, 2015
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.43 KB | None | 0 0
  1. package nl.edejong.p1.parser
  2.  
  3. import cats.state.State
  4. import org.scalatest._
  5.  
  6. import cats.std.{Function0Instances, AllInstances}
  7. import cats.syntax.AllSyntax
  8.  
  9.  
  10. class P1ParserSpec extends WordSpec with Matchers with AllInstances with AllSyntax
  11. with Function0Instances
  12. {
  13.  
  14.         import cats.std.function._
  15.         val addM2: State[Any, Any] = State(cur ⇒ (cur, 0))
  16.         println(addM2.runS(0).run)
  17.  
  18. }
  19.  
  20. object P1ParserSpec
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement