Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let A = [1,2,3,4]
- let B = [2,3,4,5]
- let C = zip(A, B).map { $0 * $1 }
- print(C) // [2, 6, 12, 20]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement