Created
December 23, 2016 22:13
-
-
Save Jamil/6467d9f73a72a2cee0c514a7c02a82fe to your computer and use it in GitHub Desktop.
Simple Bigram Generation
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
| bigrams :: [String] -> [(String, String)] | |
| bigrams [x] = [] | |
| bigrams (x:y:xs) = (x, y):(bigrams $ y:xs) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment