Maintainer | bastiaan.heeren@ou.nl |
---|---|
Stability | provisional |
Portability | portable (depends on ghc) |
Safe Haskell | Safe |
Language | Haskell98 |
Synopsis
- class Iterator a where
- isFirst :: Iterator a => a -> Bool
- isFinal :: Iterator a => a -> Bool
- hasNext :: Iterator a => a -> Bool
- hasPrevious :: Iterator a => a -> Bool
- searchForward :: Iterator a => (a -> Bool) -> a -> Maybe a
- searchBackward :: Iterator a => (a -> Bool) -> a -> Maybe a
- searchNext :: Iterator a => (a -> Bool) -> a -> Maybe a
- searchPrevious :: Iterator a => (a -> Bool) -> a -> Maybe a
- searchWith :: (a -> Maybe a) -> (a -> Bool) -> a -> Maybe a
- data ListIterator a
Iterator type class
class Iterator a where Source #
Instances
hasPrevious :: Iterator a => a -> Bool Source #
List iterator
data ListIterator a Source #