rcd27
07/21/2019, 5:58 PMa
solve the compile-time problem:
binding {
val (a) = IO.invoke { 1 }
a + 1
}.fix().unsafeRunSync()
// 2
kitttn
07/21/2019, 6:01 PMdata class Test(val a: Int, val b: String = "Hello")
val (num, str) = Test(-1)
println("value is: $str") // prints value is: Hello
kitttn
07/21/2019, 6:02 PM.component1()
/ .component2()
declaration, you can actually implement it by your classes as well to have this functionality 🙂simon.vergauwen
07/21/2019, 6:18 PMIO { 1 }.bind()
with !IO { 1 }
, and component1
operator overload. !
is achieved with overload the not
operator.raulraja
07/22/2019, 7:33 PM