hPDB-1.2.0.3: Protein Databank file format library

Bio.PDB.Iterable

Description

Iterable instances and convenience functions.

Synopsis

class Iterable a b where

Class for iterating all nested components b of type a.

b

a

Minimal complete definition

itmapM, itfoldM, itfoldr, itfoldl, itfoldl', itlength

Methods

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

itlength :: Proxy * b -> a -> Int

firstModel :: Iterable a Model => a -> Maybe Model Source

Takes a first model.

numAtoms :: Iterable a Atom => a -> Int Source

Number of all atoms within the structure.

numResidues :: Iterable a Residue => a -> Int Source

Number of all residues within the structure.

numChains :: Iterable a Chain => a -> Int Source

Number of all chains within the structure.

numModels :: Iterable a Model => a -> Int Source

Number of all models within the structure.