Skip to content

Instantly share code, notes, and snippets.

@jakenotjacob
Created December 18, 2015 04:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jakenotjacob/9fb749bac14fbb8cb9a2 to your computer and use it in GitHub Desktop.
Save jakenotjacob/9fb749bac14fbb8cb9a2 to your computer and use it in GitHub Desktop.
First attempt at... elixir.
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