I have a structure like [[[ ]]] which I want to convert to [].
[[[ ]]]
[]
E.g. [ [ [ \"Hi\" ] ] ] into [ \"Hi\" ]
[ [ [ \"Hi\" ] ] ]
[ \"Hi\" ]
How
you can use join as
let numbers = [[1,2,3],[4],[5,6,7,8,9]] let newArray = Array(numbers.joined().joined()) print(newArray)//[1,2,3,4,5,6,7,8,9]]