Packages
A spellchecker for Elixir, made with Bun and cspell
Current section
Files
Jump to
Current section
Files
priv/bun/node_modules/@cspell/cspell-pipe/dist/operators/flatten.js
import { toPipeFn } from '../helpers/util.js';
export function opFlattenAsync() {
async function* fn(iter) {
for await (const v of iter) {
yield* v;
}
}
return fn;
}
export function opFlattenSync() {
function* fn(iter) {
for (const v of iter) {
yield* v;
}
}
return fn;
}
export const opFlatten = () => toPipeFn(opFlattenSync(), opFlattenAsync());
//# sourceMappingURL=flatten.js.map