Skip to content

Instantly share code, notes, and snippets.

@radar
Forked from jakenotjacob/tetris_board.ex
Last active December 18, 2015 05:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save radar/17846664bbe3e86f666c to your computer and use it in GitHub Desktop.
Save radar/17846664bbe3e86f666c 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, y >>), nil}
end)
end))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment