mirror of
https://github.com/correl/elm.git
synced 2025-03-08 05:00:09 -10:00
6 lines
141 B
Text
6 lines
141 B
Text
module Accumulate (..) where
|
|
|
|
|
|
accumulate : (a -> b) -> List a -> List b
|
|
accumulate func input =
|
|
List.foldr (\v c -> func v :: c) [] input
|