Sha256: 76bcb9387125823db831fb8490dcf1cbb082275bbe45ab8c4bb75af1279fad5a
Contents?: true
Size: 340 Bytes
Versions: 208
Compression:
Stored size: 340 Bytes
Contents
(* accumulate given a list and a transformation function, apply the transformation function to each list element and return the results. Caveats: an empty list cannot be transformed do not use List.map from the standard basis *) fun accumulate [] _ = [] | accumulate (x::xs) f = f x :: accumulate xs f
Version data entries
208 entries across 208 versions & 1 rubygems