Sha256: 2ad412f91756db352e04d9d4a07c7729adbbae57029342094069770c186c389b

Contents?: true

Size: 361 Bytes

Versions: 52

Compression:

Stored size: 361 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 (f: 'a -> 'b) (xs: 'a list): 'b list =
  raise Fail "'accumulate' has not been implemented"

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
trackler-2.2.1.42 tracks/sml/exercises/accumulate/accumulate.sml
trackler-2.2.1.41 tracks/sml/exercises/accumulate/accumulate.sml
trackler-2.2.1.40 tracks/sml/exercises/accumulate/accumulate.sml
trackler-2.2.1.39 tracks/sml/exercises/accumulate/accumulate.sml
trackler-2.2.1.38 tracks/sml/exercises/accumulate/accumulate.sml
trackler-2.2.1.37 tracks/sml/exercises/accumulate/accumulate.sml
trackler-2.2.1.36 tracks/sml/exercises/accumulate/accumulate.sml
trackler-2.2.1.35 tracks/sml/exercises/accumulate/accumulate.sml
trackler-2.2.1.34 tracks/sml/exercises/accumulate/accumulate.sml
trackler-2.2.1.33 tracks/sml/exercises/accumulate/accumulate.sml
trackler-2.2.1.32 tracks/sml/exercises/accumulate/accumulate.sml
trackler-2.2.1.31 tracks/sml/exercises/accumulate/accumulate.sml
trackler-2.2.1.30 tracks/sml/exercises/accumulate/accumulate.sml
trackler-2.2.1.29 tracks/sml/exercises/accumulate/accumulate.sml
trackler-2.2.1.28 tracks/sml/exercises/accumulate/accumulate.sml
trackler-2.2.1.27 tracks/sml/exercises/accumulate/accumulate.sml
trackler-2.2.1.26 tracks/sml/exercises/accumulate/accumulate.sml
trackler-2.2.1.25 tracks/sml/exercises/accumulate/accumulate.sml
trackler-2.2.1.24 tracks/sml/exercises/accumulate/accumulate.sml
trackler-2.2.1.23 tracks/sml/exercises/accumulate/accumulate.sml