Gamgine-0.4.1: Some kind of game library or set of utilities.

Safe HaskellNone
LanguageHaskell98

Gamgine.Utils

Synopsis

Documentation

count :: Eq a => a -> [a] -> Int Source

replaceBy :: (a -> Bool) -> a -> [a] -> [a] Source

replace all entries in as by new for which f returns true

sv :: Show a => String -> a -> String Source

for_ :: [a] -> (a -> b) -> [b] Source

maybe_ :: Maybe a -> b -> (a -> b) -> b Source

firstFreeId :: Eq a => [a] -> [a] -> a Source