UNPKG

fp-ts

Version:

Functional programming in TypeScript

4 lines (3 loc) 191 B
export function altAll(F) { return function (startWith) { return function (as) { return as.reduce(function (acc, a) { return F.alt(acc, function () { return a; }); }, startWith); }; }; }