Skip to content

Instantly share code, notes, and snippets.

@fitomad fitomad/string-count.swift Secret
Created Apr 19, 2018

What would you like to do?
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
You can’t perform that action at this time.