Created
August 20, 2012 07:22
-
-
Save imeckler/3401817 to your computer and use it in GitHub Desktop.
All strings
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
-- The list where nth element is the list of strings of length n. | |
strings = iterate (map (:) letters <*>) letterStrings | |
where letterStrings = map (:[]) letters | |
letters = ['a'..'z'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment