Guest User

Untitled

a guest
Jan 22nd, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. let myURLArray: ([URL]) = [ URL(string: "https://www.google.fr")! ]
  2. let result = myURLArray.flatMap { $0.absoluteString }
  3. print(result)
  4.  
  5. ["https://www.google.fr"]
  6.  
  7. ["h", "t", "t", "p", "s", ":", "/", "/", "w", "w", "w", ".", "g", "o", "o", "g", "l", "e", ".", "f", "r"]
Add Comment
Please, Sign In to add comment