Created
May 18, 2017 06:59
-
-
Save colorbox/f737c8bd60a288c897f4d7c537fcd9df 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
list = "AAAA" | |
(for x <- String.split(list,"")|>Enum.drop(-1), do: ([0,0,0] ++ Integer.digits(elem(Code.eval_string("0x"<>x),0),2))|>Enum.take(-4) )|> List.flatten()|> Enum.join() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment