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.2 tracks/sml/exercises/accumulate/accumulate.sml
trackler-2.2.1.1 tracks/sml/exercises/accumulate/accumulate.sml
trackler-2.2.1.0 tracks/sml/exercises/accumulate/accumulate.sml
trackler-2.2.0.6 tracks/sml/exercises/accumulate/accumulate.sml
trackler-2.2.0.5 tracks/sml/exercises/accumulate/accumulate.sml
trackler-2.2.0.4 tracks/sml/exercises/accumulate/accumulate.sml
trackler-2.2.0.3 tracks/sml/exercises/accumulate/accumulate.sml
trackler-2.2.0.2 tracks/sml/exercises/accumulate/accumulate.sml
trackler-2.2.0.1 tracks/sml/exercises/accumulate/accumulate.sml
trackler-2.2.0.0 tracks/sml/exercises/accumulate/accumulate.sml
trackler-2.1.0.55 tracks/sml/exercises/accumulate/accumulate.sml
trackler-2.1.0.54 tracks/sml/exercises/accumulate/accumulate.sml