Advertisement
Guest User

Untitled

a guest
Apr 1st, 2015
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. var string = String(count: 5, repeatedValue: "a")
  2. // string is "aaaaa"
  3.  
  4. let char = Character("a")
  5. let string = String(count: 5, repeatedValue: char)
  6.  
  7. let array = Array(count: 5, repeatedValue: "a")
  8.  
  9. var str9 = String(count: 5,repeatedValue: Character("c"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement