UNPKG

dashp

Version:

Utilities for monadic promises.

7 lines (5 loc) 182 B
import {of} from "./Future"; import {curry3} from "./internal/curry"; export default curry3("fold", (f, acc, xs) => xs.reduce((memo, x) => memo.then((y) => f(y, x)), of(acc)), );