Chain an Option-returning computation. None short-circuits. Supports data-first and curried (pipe-friendly) forms.
None
const street = pipe( findUser(id), flatMap((u) => fromNullable(u.address)), flatMap((a) => fromNullable(a.street)), ) Copy
const street = pipe( findUser(id), flatMap((u) => fromNullable(u.address)), flatMap((a) => fromNullable(a.street)), )
Chain an Option-returning computation.
Noneshort-circuits. Supports data-first and curried (pipe-friendly) forms.