- maybeFindMin :: Ord a => Set a -> (a -> Bool) -> Maybe a
- maybeFindMinM :: (Ord a, Monad m) => Set a -> (a -> m Bool) -> m (Maybe a)
- filterM :: (Ord a, Monad m) => (a -> m Bool) -> Set a -> m (Set a)
- mapM :: (Ord a, Ord b, Monad m) => (a -> m b) -> Set a -> m (Set b)
- nextElement :: Ord a => Set a -> a -> Maybe a
- prevElement :: Ord a => Set a -> a -> Maybe a
- tryFindMin :: Ord a => Set a -> Maybe a
- tryFindMax :: Ord a => Set a -> Maybe a

# Documentation

nextElement :: Ord a => Set a -> a -> Maybe aSource

Next element

prevElement :: Ord a => Set a -> a -> Maybe aSource

Prev element

tryFindMin :: Ord a => Set a -> Maybe aSource

Try find min element.

tryFindMax :: Ord a => Set a -> Maybe aSource

Try find min element.