Created
September 5, 2018 22:11
-
-
Save dschinkel/5fd32482f60141228423c2a6391ebb68 to your computer and use it in GitHub Desktop.
Elm minMax Kata - Blog Post Snippets
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
-- 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