Closed DrBoolean closed 7 years ago
Nailed it! Very clear, great motivation and explanation.
Just to clear up some terminology:
reducer :: (r -> b -> r) transducer :: (r -> a -> r) -> (r -> b -> r)
So mapper/filterer (transducers) are Hof's that take a reducer and return a reducer.
And combination function = reducer (or semigroup if you want to take advantage of a centuries of math ;)
So the // TODO: fact-check if the transducer produces the reducer or is the reducer - it produces one.
// TODO: fact-check if the transducer produces the reducer or is the reducer
And the term transducer-reducer could just be transducer
transducer-reducer
transducer
Nailed it! Very clear, great motivation and explanation.
Just to clear up some terminology:
So mapper/filterer (transducers) are Hof's that take a reducer and return a reducer.
And combination function = reducer (or semigroup if you want to take advantage of a centuries of math ;)
So the
// TODO: fact-check if the transducer produces the reducer or is the reducer
- it produces one.And the term
transducer-reducer
could just betransducer