-
-
Save fitomad/23ec956714c2921a19c95c620b5f3cb0 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
import Foundation | |
let texto: String = "xxxxx0123456789" | |
let letras: String = String(texto.prefix(5)) | |
print(letras) | |
/* | |
xxxxx | |
* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment