If I have two Option monads containing numbers, how can I add them together whilst not exiting the monad?
import { fromNullable, pipe, chain, map } from 'fp-ts/lib/Option'
let c1 = fromNullable(10)
let c2 = fromNullable(20)
// This is where I'm stuck. I would expect c3 to be an Option<number> containing 30.
let c3 = pipe(c1, chain(map((x) => x + c2))
Thank you :-)