raulraja
07/03/2018, 11:30 PMcrossinline
because the function is inline
?
The crossinline marker is used to mark lambdas that mustn’t allow non-local returnsWhy not just?:
fun <B> EitherOf<*, B>.getOrElse(default: () -> B): B =
fix().fold({ default() }, ::identity)