cgrand / xforms

Extra transducers and reducing fns for Clojure(script)
574 stars 32 forks source link

`cata`? #4

Closed eraserhd closed 7 years ago

eraserhd commented 8 years ago

I'm teasing out transducers and processes for Avi. I have a pretty general context for catamorphisms here. I'm still reasoning through a few corner cases to make sure it's golden, but would you like it? This project seems like a good place for it to go.

eraserhd commented 8 years ago

Also, maybe annotate - I've broken out stuff that could be contributed here.

https://github.com/maitria/avi/blob/master/src/avi/xforms.clj

cgrand commented 8 years ago

I haven't thought enough about transducing trees. Well core Clojure itself is half-equipped for trees: