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.58 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.57 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.56 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.55 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.54 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.53 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.52 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.51 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.50 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.49 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.48 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.47 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.46 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.45 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.44 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.43 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.42 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.41 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.40 problem-specifications/exercises/flatten-array/description.md