Sha256: 9ad033f97924916d1fac3039db04ae1f6324a47cbf82a21ff10418ac7ac01a79

Contents?: true

Size: 210 Bytes

Versions: 312

Compression:

Stored size: 210 Bytes

Contents

module Accumulate (accumulate) where

accumulate :: (a -> b) -> [a] -> [b]
accumulate f = accumulate' []
  where
    accumulate' acc []     = reverse acc
    accumulate' acc (x:xs) = accumulate' (f x : acc) xs

Version data entries

312 entries across 312 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/haskell/exercises/accumulate/examples/fail-reverse/src/Accumulate.hs
trackler-2.2.1.179 tracks/haskell/exercises/accumulate/examples/fail-reverse/src/Accumulate.hs
trackler-2.2.1.178 tracks/haskell/exercises/accumulate/examples/fail-reverse/src/Accumulate.hs
trackler-2.2.1.177 tracks/haskell/exercises/accumulate/examples/fail-reverse/src/Accumulate.hs
trackler-2.2.1.176 tracks/haskell/exercises/accumulate/examples/fail-reverse/src/Accumulate.hs
trackler-2.2.1.175 tracks/haskell/exercises/accumulate/examples/fail-reverse/src/Accumulate.hs
trackler-2.2.1.174 tracks/haskell/exercises/accumulate/examples/fail-reverse/src/Accumulate.hs
trackler-2.2.1.173 tracks/haskell/exercises/accumulate/examples/fail-reverse/src/Accumulate.hs
trackler-2.2.1.172 tracks/haskell/exercises/accumulate/examples/fail-reverse/src/Accumulate.hs
trackler-2.2.1.171 tracks/haskell/exercises/accumulate/examples/fail-reverse/src/Accumulate.hs
trackler-2.2.1.170 tracks/haskell/exercises/accumulate/examples/fail-reverse/src/Accumulate.hs
trackler-2.2.1.169 tracks/haskell/exercises/accumulate/examples/fail-reverse/src/Accumulate.hs
trackler-2.2.1.167 tracks/haskell/exercises/accumulate/examples/fail-reverse/src/Accumulate.hs
trackler-2.2.1.166 tracks/haskell/exercises/accumulate/examples/fail-reverse/src/Accumulate.hs
trackler-2.2.1.165 tracks/haskell/exercises/accumulate/examples/fail-reverse/src/Accumulate.hs
trackler-2.2.1.164 tracks/haskell/exercises/accumulate/examples/fail-reverse/src/Accumulate.hs
trackler-2.2.1.163 tracks/haskell/exercises/accumulate/examples/fail-reverse/src/Accumulate.hs
trackler-2.2.1.162 tracks/haskell/exercises/accumulate/examples/fail-reverse/src/Accumulate.hs
trackler-2.2.1.161 tracks/haskell/exercises/accumulate/examples/fail-reverse/src/Accumulate.hs
trackler-2.2.1.160 tracks/haskell/exercises/accumulate/examples/fail-reverse/src/Accumulate.hs