Sha256: 3dc35d8a4fbda753eef4298c9aa10f20df255dbb8abc822e1f57c082251cfca1
Contents?: true
Size: 257 Bytes
Versions: 312
Compression:
Stored size: 257 Bytes
Contents
module Accumulate (accumulate) where accumulate :: (a -> b) -> [a] -> [b] accumulate _ [] = [] accumulate f (x:xs) = f x : accumulate f xs {- -- Some other reasonable definitions: accumulate f = foldr ((:) . f) [] accumulate f xs = [f x | x <- xs] -}
Version data entries
312 entries across 312 versions & 1 rubygems