mirror of
https://github.com/correl/elm.git
synced 2024-11-15 19:19:31 +00:00
6 lines
146 B
Elm
6 lines
146 B
Elm
module Accumulate exposing (..)
|
|
|
|
|
|
accumulate : (a -> b) -> List a -> List b
|
|
accumulate func input =
|
|
List.foldr (\v c -> func v :: c) [] input
|