This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
||| Given a mapper of type (a -> Foldable b), it transforms: | |
||| - a step function taking values of type `b` | |
||| - into one taking values of type `a` | |
catMapping : (Foldable t) => (a -> t b) -> Transducer acc s s a b | |
catMapping fn = statelessTransducer $ | |
\next, acc, a => runSteps next acc (fn a) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment