Skip to content

Instantly share code, notes, and snippets.

@imeckler
Created August 20, 2012 07:22
Show Gist options
  • Save imeckler/3401817 to your computer and use it in GitHub Desktop.
Save imeckler/3401817 to your computer and use it in GitHub Desktop.
All strings
-- 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