Created
October 28, 2015 11:36
-
-
Save defndaines/0f16c11f13fb69980026 to your computer and use it in GitHub Desktop.
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
resolve(Str) -> | |
lists:foldl(fun combine/2, [""], Str). | |
combine($?, Acc) -> | |
[E ++ [N] || E <- Acc, N <- "01"]; | |
combine(C, Acc) -> | |
[E ++ [C] || E <- Acc]. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment