Last active
July 28, 2017 17:49
-
-
Save deque-blog/47c09db4e7c26b9714f595ac55ccae99 to your computer and use it in GitHub Desktop.
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
indexingFrom : Int -> Transducer acc s (Int, s) a (Int, a) | |
indexingFrom startIndex = statefulTransducer startIndex stepImpl | |
where | |
stepImpl next (n, acc) a = withState (succ n) <$> next acc (n, a) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment