Sha256: fa7d2e90e4c8d5541afc70f42907542fd01033e05edc6408948a79b286717c56

Contents?: true

Size: 154 Bytes

Versions: 66

Compression:

Stored size: 154 Bytes

Contents

module Accumulate exposing (accumulate)


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

Version data entries

66 entries across 66 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/elm/exercises/accumulate/Accumulate.example.elm
trackler-2.2.1.179 tracks/elm/exercises/accumulate/Accumulate.example.elm
trackler-2.2.1.178 tracks/elm/exercises/accumulate/Accumulate.example.elm
trackler-2.2.1.177 tracks/elm/exercises/accumulate/Accumulate.example.elm
trackler-2.2.1.176 tracks/elm/exercises/accumulate/Accumulate.example.elm
trackler-2.2.1.175 tracks/elm/exercises/accumulate/Accumulate.example.elm
trackler-2.2.1.174 tracks/elm/exercises/accumulate/Accumulate.example.elm
trackler-2.2.1.173 tracks/elm/exercises/accumulate/Accumulate.example.elm
trackler-2.2.1.172 tracks/elm/exercises/accumulate/Accumulate.example.elm
trackler-2.2.1.171 tracks/elm/exercises/accumulate/Accumulate.example.elm
trackler-2.2.1.170 tracks/elm/exercises/accumulate/Accumulate.example.elm
trackler-2.2.1.169 tracks/elm/exercises/accumulate/Accumulate.example.elm
trackler-2.2.1.167 tracks/elm/exercises/accumulate/Accumulate.example.elm
trackler-2.2.1.166 tracks/elm/exercises/accumulate/Accumulate.example.elm
trackler-2.2.1.165 tracks/elm/exercises/accumulate/Accumulate.example.elm
trackler-2.2.1.164 tracks/elm/exercises/accumulate/Accumulate.example.elm
trackler-2.2.1.163 tracks/elm/exercises/accumulate/Accumulate.example.elm
trackler-2.2.1.162 tracks/elm/exercises/accumulate/Accumulate.example.elm
trackler-2.2.1.161 tracks/elm/exercises/accumulate/Accumulate.example.elm
trackler-2.2.1.160 tracks/elm/exercises/accumulate/Accumulate.example.elm