Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Clojure transducers (https://clojure.org/reference/transducers). It's clearly a functional construct, but somehow I haven't seen it being used in other functional languages.


https://github.com/bitemyapp/learnhaskell/blob/master/dialog...

> a transducer is recognizing that the signature of foldl splits

> type Transducer a b = forall r. (r -> b -> r) -> (r -> a -> r)

> they compose like lenses




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: