| Copyright | (c) 2014 Javran Cheng |
|---|---|
| License | MIT |
| Maintainer | Javran.C@gmail.com |
| Stability | experimental |
| Portability | POSIX |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Game.H2048.Utils
Description
helper functions used when implementing game logic
Documentation
Arguments
| :: Int | the index |
| -> (a -> a) | a function from the old element to the new one |
| -> [a] | the list to be modified |
| -> [a] |
modify a specified element in a list, this is a simple semantic editor combinator