├── .gitignore ├── 1-why-transducers-are-helpful └── 1-why-transducers-are-helpful.js ├── 10-create-a-seq-helper └── 10-create-a-seq-helper.js ├── 11-add-the-transducer-protocol └── 11-add-the-transducer-protocol.js ├── 12-measure-the-performance-of-our-transducers └── 12-measure-the-performance-of-our-transducers.js ├── 13-use-transducers-in-production └── 13-use-transducers-in-production.js ├── 2-write-reducers-for-different-data-types └── 2-write-reducers-for-different-data-types.js ├── 3-understand-transformer-functions └── 3-understand-transformer-functions.js ├── 4-rewrite-map-and-filter-as-reducers └── 4-rewrite-map-and-filter-as-reducers.js ├── 5-create-map-and-filter-transducers └── 5-create-map-and-filter-transducers.js ├── 6-improve-composition-with-the-compose-combinator └── 6-improve-composition-with-the-compose-combinator.js ├── 7-transduce-over-any-iterable-collection └── 7-transduce-over-any-iterable-collection.js ├── 8-make-an-into-helper └── 8-make-an-into-helper.js ├── 9-transduce-when-the-collection-type-is-an-object └── 9-transduce-when-the-collection-type-is-an-object.js ├── package.json ├── utils.js └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- 1 | .babelrc 2 | .idea/ 3 | node_modules/ 4 | .DS_Store 5 | -------------------------------------------------------------------------------- /1-why-transducers-are-helpful/1-why-transducers-are-helpful.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pfrend/transducer-code-samples/HEAD/1-why-transducers-are-helpful/1-why-transducers-are-helpful.js -------------------------------------------------------------------------------- /10-create-a-seq-helper/10-create-a-seq-helper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pfrend/transducer-code-samples/HEAD/10-create-a-seq-helper/10-create-a-seq-helper.js -------------------------------------------------------------------------------- /11-add-the-transducer-protocol/11-add-the-transducer-protocol.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pfrend/transducer-code-samples/HEAD/11-add-the-transducer-protocol/11-add-the-transducer-protocol.js -------------------------------------------------------------------------------- /12-measure-the-performance-of-our-transducers/12-measure-the-performance-of-our-transducers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pfrend/transducer-code-samples/HEAD/12-measure-the-performance-of-our-transducers/12-measure-the-performance-of-our-transducers.js -------------------------------------------------------------------------------- /13-use-transducers-in-production/13-use-transducers-in-production.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pfrend/transducer-code-samples/HEAD/13-use-transducers-in-production/13-use-transducers-in-production.js -------------------------------------------------------------------------------- /2-write-reducers-for-different-data-types/2-write-reducers-for-different-data-types.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pfrend/transducer-code-samples/HEAD/2-write-reducers-for-different-data-types/2-write-reducers-for-different-data-types.js -------------------------------------------------------------------------------- /3-understand-transformer-functions/3-understand-transformer-functions.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pfrend/transducer-code-samples/HEAD/3-understand-transformer-functions/3-understand-transformer-functions.js -------------------------------------------------------------------------------- /4-rewrite-map-and-filter-as-reducers/4-rewrite-map-and-filter-as-reducers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pfrend/transducer-code-samples/HEAD/4-rewrite-map-and-filter-as-reducers/4-rewrite-map-and-filter-as-reducers.js -------------------------------------------------------------------------------- /5-create-map-and-filter-transducers/5-create-map-and-filter-transducers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pfrend/transducer-code-samples/HEAD/5-create-map-and-filter-transducers/5-create-map-and-filter-transducers.js -------------------------------------------------------------------------------- /6-improve-composition-with-the-compose-combinator/6-improve-composition-with-the-compose-combinator.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pfrend/transducer-code-samples/HEAD/6-improve-composition-with-the-compose-combinator/6-improve-composition-with-the-compose-combinator.js -------------------------------------------------------------------------------- /7-transduce-over-any-iterable-collection/7-transduce-over-any-iterable-collection.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pfrend/transducer-code-samples/HEAD/7-transduce-over-any-iterable-collection/7-transduce-over-any-iterable-collection.js -------------------------------------------------------------------------------- /8-make-an-into-helper/8-make-an-into-helper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pfrend/transducer-code-samples/HEAD/8-make-an-into-helper/8-make-an-into-helper.js -------------------------------------------------------------------------------- /9-transduce-when-the-collection-type-is-an-object/9-transduce-when-the-collection-type-is-an-object.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pfrend/transducer-code-samples/HEAD/9-transduce-when-the-collection-type-is-an-object/9-transduce-when-the-collection-type-is-an-object.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pfrend/transducer-code-samples/HEAD/package.json -------------------------------------------------------------------------------- /utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pfrend/transducer-code-samples/HEAD/utils.js -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pfrend/transducer-code-samples/HEAD/yarn.lock --------------------------------------------------------------------------------