Sha256: c10b0501e77941f51d71d86dea6b1ed85c436bea0bad8ad367342d6c4ac606f2
Contents?: true
Size: 851 Bytes
Versions: 48
Compression:
Stored size: 851 Bytes
Contents
# Flatten Array 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] ## Running the tests Even though there are multiple implementations, we encourage to use Poly/ML. ``` $ poly -q < test_{ exercise }.sml ``` If you want to start an interactive session: ``` $ poly --use test_{ exercise }.sml ``` ## Source Interview Question [https://reference.wolfram.com/language/ref/Flatten.html](https://reference.wolfram.com/language/ref/Flatten.html) ## Submitting Incomplete Solutions It's possible to submit an incomplete solution so you can see how others have completed the exercise.
Version data entries
48 entries across 48 versions & 1 rubygems