Applying yield to a Maybe within the generator function unwraps the Maybe and returns underlying value in case of success
However the convenient option for typescript is to use yield* maybe.generator() as otherwise one may have to deal with union types
Create compound Maybe from generator function
Applying yield to a Maybe within the generator function unwraps the Maybe and returns underlying value in case of success However the convenient option for typescript is to use
yield* maybe.generator()as otherwise one may have to deal with union types