How to append rows to 2D array it in Swift

1 Answer

0 votes
let arr0 = ["swift", "c", "c++", "c#"]
let arr1 = ["php", "java", "python"]
let arr2 = ["ruby", "cobol"]

var arr = [arr0, arr1, arr2]

print(arr)




/*
run:

[["swift", "c", "c++", "c#"], ["php", "java", "python"], ["ruby", "cobol"]]

*/

 



answered Sep 19, 2020 by avibootz
...