import { MapperP } from './index' const getMaybe = (mappers: MapperP[]) => async (input: In) => { return mappers.reduce>(async (result, mapper) => { return (await result) ?? (await mapper(input)) }, Promise.resolve(undefined)) }