Portability | portable (depends on ghc) |
---|---|

Stability | provisional |

Maintainer | bastiaan.heeren@ou.nl |

Safe Haskell | None |

- 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

hasPrevious :: Iterator a => a -> BoolSource

searchForward :: Iterator a => (a -> Bool) -> a -> Maybe aSource

searchBackward :: Iterator a => (a -> Bool) -> a -> Maybe aSource

searchNext :: Iterator a => (a -> Bool) -> a -> Maybe aSource

searchPrevious :: Iterator a => (a -> Bool) -> a -> Maybe aSource

searchWith :: (a -> Maybe a) -> (a -> Bool) -> a -> Maybe aSource

# List iterator

data ListIterator a Source

Update ListIterator | |

Eq a => Eq (ListIterator a) | |

Show a => Show (ListIterator a) | |

Arbitrary a => Arbitrary (ListIterator a) | |

Focus (ListIterator a) | |

Iterator (ListIterator a) |