Created
April 12, 2015 14:59
-
-
Save TheSeamau5/9f2f8d0fde0a3d631042 to your computer and use it in GitHub Desktop.
String Match On
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
| matchOn : String -> String -> Maybe String | |
| matchOn start string = | |
| if startsWith start string | |
| then | |
| Just <| dropLeft (length start) string | |
| else | |
| Nothing |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
matchfunction for the DSL: