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.22 tracks/sml/exercises/accumulate/accumulate.sml
trackler-2.2.1.21 tracks/sml/exercises/accumulate/accumulate.sml
trackler-2.2.1.20 tracks/sml/exercises/accumulate/accumulate.sml
trackler-2.2.1.19 tracks/sml/exercises/accumulate/accumulate.sml
trackler-2.2.1.18 tracks/sml/exercises/accumulate/accumulate.sml
trackler-2.2.1.17 tracks/sml/exercises/accumulate/accumulate.sml
trackler-2.2.1.16 tracks/sml/exercises/accumulate/accumulate.sml
trackler-2.2.1.15 tracks/sml/exercises/accumulate/accumulate.sml
trackler-2.2.1.14 tracks/sml/exercises/accumulate/accumulate.sml
trackler-2.2.1.13 tracks/sml/exercises/accumulate/accumulate.sml
trackler-2.2.1.12 tracks/sml/exercises/accumulate/accumulate.sml
trackler-2.2.1.11 tracks/sml/exercises/accumulate/accumulate.sml
trackler-2.2.1.10 tracks/sml/exercises/accumulate/accumulate.sml
trackler-2.2.1.9 tracks/sml/exercises/accumulate/accumulate.sml
trackler-2.2.1.8 tracks/sml/exercises/accumulate/accumulate.sml
trackler-2.2.1.7 tracks/sml/exercises/accumulate/accumulate.sml
trackler-2.2.1.6 tracks/sml/exercises/accumulate/accumulate.sml
trackler-2.2.1.5 tracks/sml/exercises/accumulate/accumulate.sml
trackler-2.2.1.4 tracks/sml/exercises/accumulate/accumulate.sml
trackler-2.2.1.3 tracks/sml/exercises/accumulate/accumulate.sml