Created
December 18, 2015 04:38
-
-
Save jakenotjacob/9fb749bac14fbb8cb9a2 to your computer and use it in GitHub Desktop.
First attempt at... elixir.
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
board = List.flatten(Enum.map(?a..?j, fn x -> | |
Enum.map(0..9, fn y -> | |
{(String.to_atom(<< x :: utf8 >> <> "#{y}")), nil} | |
end) | |
end)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment