Created
April 28, 2016 02:35
-
-
Save TheSeamau5/916a804b61c7b89bb614fed593d853ef to your computer and use it in GitHub Desktop.
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
powerSet : String -> List String | |
powerSet = | |
String.words | |
>> List.foldr (\x acc -> acc ++ List.map ((::) x) acc) [[]] | |
>> List.map (String.join " ") | |
>> List.filter ((/=) "") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment