Created
March 23, 2017 11:56
-
-
Save leojpod/313463ef4d20b2e67b4ac5f006a643f0 to your computer and use it in GitHub Desktop.
Support code for the medium article about getting started with Elm
This file contains 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
List.filter | |
(\cell -> | |
case cell of | |
Alive -> | |
True | |
_ -> -- here is my "default case" whenever a cell is not alive I simply discard it from my count | |
False | |
) | |
|> List.length |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment