Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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