-
-
Save fitomad/4bc53deecac460bfa4943dfaa9359b4d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Podemos crearlo vacío... | |
var inicio = [String]() | |
// ...repitiendo un mismo elemento un número determinado de veces... | |
var sheldonLlama = [String](repeating: "Toc", count: 3) | |
print(sheldonLlama) | |
print("Penny") | |
print(sheldonLlama) | |
print("Penny") | |
print(sheldonLlama) | |
print("Penny") | |
// O asignándole valores directamente. | |
var personajes = [ "Penny", "Leonard", "Sheldon", "Raj", "Howard" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment