Skip to content

Instantly share code, notes, and snippets.

@nemesit
Created December 2, 2015 23:04
Show Gist options
  • Save nemesit/bca37a64f935e6c10a2d to your computer and use it in GitHub Desktop.
Save nemesit/bca37a64f935e6c10a2d to your computer and use it in GitHub Desktop.
extension Character: ForwardIndexType {
public func successor() -> Character {
return Character(UnicodeScalar(String(self).unicodeScalars.first!.value + 1))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment