If you were looking at this example, the type can ...
# arrow
s
If you were looking at this example, the type can be inferred from the return type of the function.
Copy code
fun attackEither(): Either<NukeException, Impacted> =
  binding {
    val (nuke) = arm()
    val (target) = aim()
    val (impact) = launch(target, nuke)
    impact
  }