napkin-0.5.14
Copyright(c) Soostone Inc 2020
LicenseAllRightsReserved
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe-Inferred
LanguageGHC2021

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 

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

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

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

mapHead :: (a -> a) -> [a] -> [a] #