packageDocumentation module import { Option , fold as foldOption } from "fp-ts/lib/Option" ; import { pipe } from "fp-ts/lib/pipeable" ; import { identity , constant } from "fp-ts/lib/function" ; param maybe export const foldMaybe = < T > ( maybe ) => ( base ) => pipe ( maybe , foldOption ( constant ( base ) , identity ) ) ; param maybe export const foldValue = < T > ( base ) => ( maybe ) => pipe ( maybe , foldOption ( constant ( base ) , identity ) ) ; param maybe export const foldString = foldValue ( "" ) ;