Array flattening

suggest change

Given a multidimensional array:

my_array = [[1, 2], ['a', 'b']]

the operation of flattening is to decompose all array children into the root array:

my_array.flatten

# [1, 2, 'a', 'b']

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents