Skip to content

Instantly share code, notes, and snippets.

@fitomad
Created April 19, 2018 06:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fitomad/7d10cf2c03f6b6faa37993166251da3d to your computer and use it in GitHub Desktop.
Save fitomad/7d10cf2c03f6b6faa37993166251da3d to your computer and use it in GitHub Desktop.
let numeros: String = "0123456789"
// Recuperamos el número de caracteres
// que contiene el String
let caracteres: Int = numeros.count
print("Hay \(caracteres) caracteres")
/*
Hay 10 caracteres
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment