Zip the arrays and concatenate the results:
let A=["91","91","49"]
let B=["9989898909","9089890890","9098979896"]
let zipped = zip(A, B)
let result = zipped.map { $0.0 + " " + $0.1 }
More Related Contents:
- How do I concatenate or merge arrays in Swift?
- Convert Dictionary to Array in swift
- Swift how to sort array of custom objects by property value
- How to check if an element is in an array
- Removing duplicate elements from an array in Swift
- How to sort an array of custom objects by property value in Swift
- How to iterate a loop with index and element in Swift
- Pick a random element from an array
- Sort Objects in Array by date
- How do I insert an element at the correct position into a sorted array in Swift?
- Shorthand to test if an object exists in an array for Swift?
- Swift JSONDecode decoding arrays fails if single element decoding fails
- How do I sort a swift array containing instances of NSManagedObject subclass by an attribute value (date)
- Flatten [Any] Array Swift
- How to remove an element from an array in Swift
- Swift: Pass array by reference?
- Is it possible to make an Array extension in Swift that is restricted to one class?
- Find Duplicate Elements In Array Using Swift
- In Swift, an efficient function that separates an array into 2 arrays based on a predicate
- How do you create an immutable array in Swift?
- Is there a way to instantly generate an array filled with a range of values in Swift?
- Generic function to sort array of class or struct by properties in Swift
- Reorder array compared to another array in Swift [duplicate]
- swift: modifying arrays inside dictionaries
- How to stable sort an array in swift?
- How to return first 5 objects of Array in Swift?
- What does $0 and $1 mean in Swift Closures?
- How can I run through three separate arrays in the same for loop?
- Operation on an array of structs implementing Equatable
- How to convert UInt8 byte array to string in Swift