iterable-2.0: API for hierarchical multilevel collections.

Safe HaskellSafe-Inferred

Data.Iterable

Description

Declares Iterable class for handling multi-level, heterogeneous, monomorphic collections that allow nested iteration.

Synopsis

Documentation

class Iterable a b whereSource

Class for iterating all nested components b of type a.

Methods

itmapM :: Monad m => (b -> m b) -> a -> m aSource

itmap :: (b -> b) -> a -> aSource

itfoldM :: Monad m => (c -> b -> m c) -> c -> a -> m cSource

itfoldr :: (b -> c -> c) -> c -> a -> cSource

itfoldl :: (c -> b -> c) -> c -> a -> cSource

itfoldl' :: (c -> b -> c) -> c -> a -> cSource

itlength :: b -> a -> IntSource