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.78 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.77 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.76 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.75 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.74 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.73 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.72 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.71 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.70 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.69 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.68 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.67 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.66 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.65 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.64 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.63 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.62 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.61 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.60 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.59 problem-specifications/exercises/flatten-array/description.md