Masynchin / tiles

Zen game
https://masynchin.github.io/tiles/
MIT License
0 stars 0 forks source link

Maybe go to default List #6

Open Masynchin opened 2 years ago

Masynchin commented 2 years ago

I write too much overhead code for NEL where it could be replace with already defined functions for List. In this Issue I will prove that I need/not need to replace NEL with List.

Masynchin commented 2 years ago

One of possible reasons to use NEL is rowConnected and columnConnected. First I use init and tail, but later replace it with prependTile and appendTile. This is important because tail on List returns Maybe, when tail on NEL not returns monad. Functions pre/append solves this because they both not returns monad.