Skip to content

Instantly share code, notes, and snippets.

@chiroptical
Created September 7, 2019 19:05
Show Gist options
  • Save chiroptical/405db35e66b71bb3f60cd734d37061ad to your computer and use it in GitHub Desktop.
Save chiroptical/405db35e66b71bb3f60cd734d37061ad to your computer and use it in GitHub Desktop.
Pattern matching example
getNeighborCellFromCell :: Maze -> Cell -> Direction -> Cell
getNeighborCellFromCell maze cell North = ...
getNeighborCellFromCell maze cell East = ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment