Skip to content

Instantly share code, notes, and snippets.

@dschinkel
Created September 5, 2018 22:11
Show Gist options
  • Save dschinkel/5fd32482f60141228423c2a6391ebb68 to your computer and use it in GitHub Desktop.
Save dschinkel/5fd32482f60141228423c2a6391ebb68 to your computer and use it in GitHub Desktop.
Elm minMax Kata - Blog Post Snippets
-- this is a list
board =
[ markerX, markerX, markerX, empty, empty, empty, empty, empty, empty ]
-- lets make an array from the list
cells =
fromList board
-- access a value at a certain index of the array
get 0 cells
-- or lets do this all in one shot instead
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment