ai-vs-ai-common-0.0.3: Common libs for an upcoming AI based game

Safe HaskellSafe-Inferred
LanguageHaskell98

AiVsAi.Util

Documentation

takeEnd :: Int -> [a] -> [a] Source

zipWithLeftover :: [a] -> [b] -> ([(a, b)], [a], [b]) Source

toState :: a -> State a () Source

concatPairs :: [(a, a)] -> [a] Source

data InfInt Source

Constructors

Infinity 
Finite Int 

Instances

maybeEmpty :: [a] -> Maybe [a] Source