Skip to content

Instantly share code, notes, and snippets.

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

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