swappy v0.0.1 Mix.Tasks.GenerateAnagrams
Generates anagrams using the default dictionary and outputs to STDOUT. Usage:
mix generate_anagrams input_phrase [limit] [required_words]
Simple
mix generate_anagrams "hoverboard fever"
With Limit
If you give a second argument, it will be taken as a limit for the number of anagrams to generate. Eg:
mix generate_anagrams "hoverboard fever" 10
If the limit can’t be interpreted as an integer, it will be ignored. Eg:
mix generate_anagrams "hoverboard fever" infinity
With Required Words
If you give a third argument, it will be treated as words the anagram must include. Eg:
mix generate_anagrams "hoverboard fever" infinity "rob drove"
This can be used to work toward something funny - if you see a word or words you like, start requiring them, run again, and repeat.
Summary
Functions
Callback implementation for c:Mix.Task.run/1