UNPKG

iterama

Version:

Composable functional (async) iterable helpers

14 lines (11 loc) 270 B
Object.defineProperty(exports, "__esModule", { value: true }); exports.startWithAsync = void 0; const startWithAsync = value => iterable => ({ async *[Symbol.asyncIterator]() { yield value; yield* iterable; } }); exports.startWithAsync = startWithAsync;