Sha256: 79b5e392ed1f71fd6fdc21c82841ce1456eb0665ee263f5a85b39a0ee8349c19

Contents?: true

Size: 318 Bytes

Versions: 77

Compression:

Stored size: 318 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

77 entries across 77 versions & 1 rubygems

Version Path
trackler-2.2.0.6 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.0.5 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.0.4 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.0.3 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.0.2 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.0.1 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.0.0 problem-specifications/exercises/flatten-array/description.md
trackler-2.1.0.55 problem-specifications/exercises/flatten-array/description.md
trackler-2.1.0.54 problem-specifications/exercises/flatten-array/description.md
trackler-2.1.0.53 problem-specifications/exercises/flatten-array/description.md
trackler-2.1.0.52 problem-specifications/exercises/flatten-array/description.md
trackler-2.1.0.51 problem-specifications/exercises/flatten-array/description.md
trackler-2.1.0.50 problem-specifications/exercises/flatten-array/description.md
trackler-2.1.0.49 problem-specifications/exercises/flatten-array/description.md
trackler-2.1.0.48 common/exercises/flatten-array/description.md
trackler-2.1.0.47 common/exercises/flatten-array/description.md
trackler-2.1.0.46 common/exercises/flatten-array/description.md
trackler-2.1.0.45 common/exercises/flatten-array/description.md
trackler-2.1.0.44 common/exercises/flatten-array/description.md
trackler-2.1.0.43 common/exercises/flatten-array/description.md