Sobes.tech
Junior — Senior

Transforming a list of arbitrary nesting into a flat form

livecode

Task condition

Implement a function that takes a list with an unknown level of nesting and returns it as a flat array.

# [1, 2, 2, [23, 4, [3, 2]]] → [1, 2, 2, 23, 4, 3, 2]
Transforming a list of arbitrary nesting into a flat… - sobes.tech