h2048-0.1.0.2: a haskell implementation of Game 2048

PortabilityPOSIX
Stabilityexperimental
MaintainerJavran.C@gmail.com
Safe HaskellSafe-Inferred

System.Game.H2048.Utils

Description

helper functions used when implementing game logic

Synopsis

Documentation

inPosSource

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

universe :: (Bounded e, Enum e) => [e]Source

all possible values for a Bounded Enum