Created
February 1, 2013 06:42
-
-
Save PollRobots/4689783 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| let currentCharacter (s:string) i = | |
| if i >= s.Length then None | |
| else if Char.IsSurrogatePair(s, i) then Some s.[i..i+1] else Some s.[i..i] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment