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.1.39 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.38 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.37 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.36 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.35 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.34 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.33 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.32 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.31 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.30 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.29 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.28 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.27 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.26 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.25 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.24 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.23 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.22 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.21 problem-specifications/exercises/flatten-array/description.md
trackler-2.2.1.20 problem-specifications/exercises/flatten-array/description.md