Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /** Returns all the anagrams of a given word. */
- def wordAnagrams(word: Word): List[Word] =
- for ( w <- dictionaryByOccurrences( wordOccurrences(word) ) ) yield w
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement