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.24 tracks/sml/exercises/flatten-array/example.sml
trackler-2.2.1.23 tracks/sml/exercises/flatten-array/example.sml
trackler-2.2.1.22 tracks/sml/exercises/flatten-array/example.sml
trackler-2.2.1.21 tracks/sml/exercises/flatten-array/example.sml
trackler-2.2.1.20 tracks/sml/exercises/flatten-array/example.sml
trackler-2.2.1.19 tracks/sml/exercises/flatten-array/example.sml
trackler-2.2.1.18 tracks/sml/exercises/flatten-array/example.sml
trackler-2.2.1.17 tracks/sml/exercises/flatten-array/example.sml
trackler-2.2.1.16 tracks/sml/exercises/flatten-array/example.sml
trackler-2.2.1.15 tracks/sml/exercises/flatten-array/example.sml
trackler-2.2.1.14 tracks/sml/exercises/flatten-array/example.sml
trackler-2.2.1.13 tracks/sml/exercises/flatten-array/example.sml
trackler-2.2.1.12 tracks/sml/exercises/flatten-array/example.sml
trackler-2.2.1.11 tracks/sml/exercises/flatten-array/example.sml
trackler-2.2.1.10 tracks/sml/exercises/flatten-array/example.sml
trackler-2.2.1.9 tracks/sml/exercises/flatten-array/example.sml
trackler-2.2.1.8 tracks/sml/exercises/flatten-array/example.sml
trackler-2.2.1.7 tracks/sml/exercises/flatten-array/example.sml
trackler-2.2.1.6 tracks/sml/exercises/flatten-array/example.sml
trackler-2.2.1.5 tracks/sml/exercises/flatten-array/example.sml