raulraja
07/02/2019, 11:34 PMsealed class Option<out A> {
fun h(): Option<Int> {
val x : Kind<ForOption, Int> = None
val y = x
return y
}
fun <B> map(f: (A) -> B): Option<B> =
when (this) {
is None -> None
is Some -> Some(f(a))
}
}