Created
June 3, 2014 20:27
-
-
Save cruffenach/3de3b6225030c957f99a to your computer and use it in GitHub Desktop.
Swift String Length Extension
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
extension String { | |
var length : Integer { | |
get { | |
return countElements(self) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment