Sha256: 8851df29b9cfe43abb0da7ff9aa6eeaced3e6b20461a2c1a5f85844aead42fb4

Contents?: true

Size: 151 Bytes

Versions: 54

Compression:

Stored size: 151 Bytes

Contents

datatype 'a nestedList =
	  Elem of 'a
	| List of 'a nestedList list

fun flatten (Elem x)  = [x]
  | flatten (List xs) = List.concat (map flatten xs)

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
trackler-2.2.1.44 tracks/sml/exercises/flatten-array/example.sml
trackler-2.2.1.43 tracks/sml/exercises/flatten-array/example.sml
trackler-2.2.1.42 tracks/sml/exercises/flatten-array/example.sml
trackler-2.2.1.41 tracks/sml/exercises/flatten-array/example.sml
trackler-2.2.1.40 tracks/sml/exercises/flatten-array/example.sml
trackler-2.2.1.39 tracks/sml/exercises/flatten-array/example.sml
trackler-2.2.1.38 tracks/sml/exercises/flatten-array/example.sml
trackler-2.2.1.37 tracks/sml/exercises/flatten-array/example.sml
trackler-2.2.1.36 tracks/sml/exercises/flatten-array/example.sml
trackler-2.2.1.35 tracks/sml/exercises/flatten-array/example.sml
trackler-2.2.1.34 tracks/sml/exercises/flatten-array/example.sml
trackler-2.2.1.33 tracks/sml/exercises/flatten-array/example.sml
trackler-2.2.1.32 tracks/sml/exercises/flatten-array/example.sml
trackler-2.2.1.31 tracks/sml/exercises/flatten-array/example.sml
trackler-2.2.1.30 tracks/sml/exercises/flatten-array/example.sml
trackler-2.2.1.29 tracks/sml/exercises/flatten-array/example.sml
trackler-2.2.1.28 tracks/sml/exercises/flatten-array/example.sml
trackler-2.2.1.27 tracks/sml/exercises/flatten-array/example.sml
trackler-2.2.1.26 tracks/sml/exercises/flatten-array/example.sml
trackler-2.2.1.25 tracks/sml/exercises/flatten-array/example.sml