|
|
|
|
|
by kazinator
4306 days ago
|
|
I think "as fundamental as function composition" means that the relationship between a function like map and a transducer (map f) is fundamental in some sense that resembles function composition. But it isn't composition: it's something that "wrangles" the "reduce kernel" out of the combination of map and f: when we map something using f, what function instead of f will do the same mapping under reduce? That function inherits logic from map, and from f, but it's not a composition of the two. |
|
True story: the transducer announcement has mostly made me read up on the Haskell fold and lens libraries...