UNPKG

@thi.ng/transducers

Version:

Collection of ~170 lightweight, composable transducers, reducers, generators, iterators for functional data transformations

9 lines (8 loc) 139 B
import { reducer } from "./reduce.js"; const pushCopy = () => reducer( () => [], (acc, x) => acc.concat([x]) ); export { pushCopy };