h2048-0.3.0.0: An Implementation of Game 2048

Copyright(c) 2014 Javran Cheng
LicenseMIT
MaintainerJavran.C@gmail.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe
LanguageHaskell2010

Game.H2048.Utils

Description

helper functions used when implementing game logic

Synopsis

Documentation

inPos Source #

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