fudgets-0.18.3.1: The Fudgets Library
Safe HaskellSafe-Inferred
LanguageHaskell98

HbcUtils

Description

Useful functions from hbc-library modules ListSet, ListMap, ListUtil, HO and UTF8

Synopsis

Documentation

union :: Eq a => [a] -> [a] -> [a] Source #

Union of sets as lists

lookupWithDefault :: Eq a => [(a, b)] -> b -> a -> b Source #

mapFst :: (t -> a) -> [(t, b)] -> [(a, b)] Source #

mapSnd :: (t -> b) -> [(a, t)] -> [(a, b)] Source #

breakAt :: Eq a => a -> [a] -> ([a], [a]) Source #

chopList :: ([a] -> (b, [a])) -> [a] -> [b] Source #

assoc :: Eq k => (v -> r) -> r -> [(k, v)] -> k -> r Source #

apFst :: (t -> a) -> (t, b) -> (a, b) Source #

apSnd :: (t -> b) -> (a, t) -> (a, b) Source #

curry3 :: ((a, b, c) -> t) -> a -> b -> c -> t Source #

uncurry3 :: (t1 -> t2 -> t3 -> t4) -> (t1, t2, t3) -> t4 Source #

encodeUTF8 :: String -> String Source #

Take a Unicode string and encode it as a string with the UTF8 method.