UNPKG

effect-ts-folds

Version:
7 lines 241 B
import { dual, pipe } from 'effect/Function'; /** * `Algebra` is invariant in the `A` type. * @category fold */ export const imap = (F) => dual(3, (self, to, from) => fa => pipe(fa, F.map(from), self, to)); //# sourceMappingURL=ops.js.map