1
0
Fork 0
mirror of https://github.com/correl/elm.git synced 2025-03-24 17:00:06 -09:00
elm/exercises/accumulate/Accumulate.example

6 lines
146 B
Text

module Accumulate exposing (..)
accumulate : (a -> b) -> List a -> List b
accumulate func input =
List.foldr (\v c -> func v :: c) [] input