ideas-1.5: Feedback services for intelligent tutoring systems

Maintainerbastiaan.heeren@ou.nl
Stabilityprovisional
Portabilityportable (depends on ghc)
Safe HaskellSafe
LanguageHaskell98

Ideas.Common.Traversal.Iterator

Contents

Description

 

Synopsis

Iterator type class

class Iterator a where Source

Minimal complete definition

next, previous

Methods

next :: a -> Maybe a Source

previous :: a -> Maybe a Source

first :: a -> a Source

final :: a -> a Source

position :: a -> Int Source

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

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

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

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

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

List iterator