var o = ... // could be undefined or nullEither.fromNullable(o) .fold(invalidO, goodO)
const s$ = xs.of(true, false, true)