Conversation

Any approach to libraries based on category theory in Rust needs to address explicit fusion via stack allocated adaptors (found in iterators, futures, streams, visitors, etc). This suggests that we might need a more general form of `Functor` than that found in Haskell. 🤔
3
8
And I think there is a ton of value in iterator adaptors - they are an easy thing to mentally latch on to as a chain of things that can be fused together into a single pass, and almost certainly inlined away. Even if there is the syntactic overhead of entering/exiting them.
1