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