Created
June 4, 2019 10:52
-
-
Save ahoy-jon/a51f498c8255ed647a0e1944072b7c59 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
case class Person(name: String, age: Int) | |
{ | |
val n:Option[String] = Some("toto") | |
val a:Option[Int] = None | |
val p:Option[Person] = Person.apply.app(name = n, age = a) | |
} | |
{ | |
val n:Task[String] ... | |
val a:Task[Int] | |
def someMethod(name:String, age:Int):Task[String] | |
val s:Task[String] = someMethod.bind(name = n, age = a) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment