UNPKG

@typed/future

Version:
8 lines 339 B
import { Left, unpack } from '@typed/either'; import { chain as chainEnv, Pure } from '@typed/env'; import { curry } from '@typed/lambda'; export const chain = curry(__chain); function __chain(fn, future) { return chainEnv((either) => unpack((error) => Pure.of(Left.of(error)), fn, either), future); } //# sourceMappingURL=chain.js.map