Skip to content

Instantly share code, notes, and snippets.

@ahoy-jon
Created June 4, 2019 10:52
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 ahoy-jon/a51f498c8255ed647a0e1944072b7c59 to your computer and use it in GitHub Desktop.
Save ahoy-jon/a51f498c8255ed647a0e1944072b7c59 to your computer and use it in GitHub Desktop.
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