Sha256: 9868d08842935281789e0ce309dfb1c6f9187845c919fbd5d332b91dfbf290b2

Contents?: true

Size: 316 Bytes

Versions: 139

Compression:

Stored size: 316 Bytes

Contents

Take a nested list and return a single flattened list with all values except nil/null.

The challenge is to write a function that accepts an arbitrarily-deep nested list-like structure and returns a flattened structure without any nil/null values.

For Example

input: [1,[2,3,null,4],[null],5]

output: [1,2,3,4,5]

Version data entries

139 entries across 139 versions & 1 rubygems

Version Path
trackler-2.2.1.180 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.179 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.178 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.177 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.176 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.175 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.174 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.173 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.172 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.171 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.170 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.169 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.167 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.166 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.165 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.164 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.163 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.162 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.161 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.160 problem-specifications/exercises/flatten-array/description.md