This can probably be improved, but this is that sc...
# arrow
r
This can probably be improved, but this is that scala example in kotlin:
Copy code
val eitherOptThing: Either<Int, Option<Int>> = Either.right(Option(1))
val transformers = OptionT(eitherOptThing)
val resultT = transformers.semiflatMap(Either.monad(), { i -> Either.right("$i")})
val result: Either<Int, Option<String>> = resultT.value.fix()