/FlattenArray

This is a code challenge to flatten an array of arbitrarily nested arrays of integers into a flat array of integers (e.g., [[1,2,['foo']],4] -> [1,2,'foo',4]. The instructions say a nested array of integers but the example shows Integers and a string. I did it so it accepts anything in the argument but returns only an array of Integers. I also added a Unit Test to test my code.

Primary LanguageSwift

This repository is not active