Created
October 8, 2017 23:23
-
-
Save mcmillhj/ee81834aa4f7bc5c15e4540851c3bd0c to your computer and use it in GitHub Desktop.
src/Accumulate.idr
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
module Accumulate | |
export | |
accumulate : (a -> b) -> List a -> List b | |
accumulate f [] = [] | |
accumulate f (x::xs) = f x :: accumulate f xs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment