napkin-0.5.10
Copyright(c) Soostone Inc 2020
LicenseAllRightsReserved
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Napkin.Utils.Lists

Description

 

Documentation

for :: [a] -> (a -> b) -> [b] #

collect #

Arguments

:: (Ord k, Foldable t) 
=> (a -> Maybe k)

key in collected map

-> (a -> v)

value in collected map

-> (v -> v -> v)

collapse function for value

-> t a

something I can traverse, e.g. [a]

-> Map k v 

gsub :: Eq b => b -> b -> [b] -> [b] #

chunksOf :: Int -> [e] -> [[e]] #

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

isShortter :: [a] -> [b] -> Bool #