Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on “Transducers” by Rich Hickey at Strange Loop [video]. Parent comment
So, instead of
type Transducer a b = (Reducer a r s) -> (Reducer b r s)
type Transducer a b r r' = (Reducer a r s) -> (Reducer b r' s)
type Transducer a b r r' s s' = (Reducer a r s) -> (Reducer b r' s')
There are no comments on this comment yet.
So, instead of
you have: Or, most generally (adding in the ability to change not only the type of the accumulator but also the type of the final result):