Safe Haskell | None |
---|

Iterable instances and convenience functions.

# Documentation

class Iterable a b where

Class for iterating all nested components `b`

of type `a`

.

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

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

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

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

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

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

numResidues :: Iterable a Residue => a -> IntSource

Number of all residues within the structure.