"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function flatten(list) {
    return list.reduce((xs, x) => xs.concat(x), []);
}
exports.flatten = flatten;
exports.chain = (fn, list) => flatten(list.map(fn));
//# sourceMappingURL=flatten.js.map