Maybe type to use with Flow
yarn add @sbizeul/maybe
or
npm i @sbizeul/maybe
import * as Maybe from '@sbizeul/maybe' const add = x => x + x const maybe = Maybe.Just(5) const result = R.pipe( Maybe.map(add), Maybe.getOrElse(() => 0) )(maybe)