Data.SizeCompare
Documentation
(|<|) :: (Sizeable a, Sizeable b) => a -> b -> BoolSource
Defines Smaller Than on the size of containers
(|<=|) :: (Sizeable a, Sizeable b) => a -> b -> BoolSource
Defines Smaller Than or Equal on the size of containers
(|>|) :: (Sizeable a, Sizeable b) => a -> b -> BoolSource
Defines Greater Than on the size of containers
(|>=|) :: (Sizeable a, Sizeable b) => a -> b -> BoolSource
Defines Greate Than or Equal on the size of containers
Provides functionality for smartly measuring the size of a container
Methods
Returns (Just size) for containers with O(1) size lookup, otherwise Nothing
Reduces a container by 1 element, resulting in Nothing when finished