Skip to content

Instantly share code, notes, and snippets.

@cemolcay
Created January 6, 2015 09:12
Show Gist options
  • Save cemolcay/4241987405f9eedf4367 to your computer and use it in GitHub Desktop.
Save cemolcay/4241987405f9eedf4367 to your computer and use it in GitHub Desktop.
extension String {
subscript (i: Int) -> String {
return String(Array(self)[i])
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment