Answers for ".joined(separator in array of object swift"

0

.joined(separator in array of object swift

let nestedNumbers = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
let joined = nestedNumbers.joined(separator: [-1, -2])
print(Array(joined))
// Prints "[1, 2, 3, -1, -2, 4, 5, 6, -1, -2, 7, 8, 9]"
Posted by: Guest on October-16-2020

Code answers related to ".joined(separator in array of object swift"

Code answers related to "Swift"

Browse Popular Code Answers by Language