ideas-1.6: 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 #

Instances

Iterator a => Iterator (Mirror a) Source # 
Iterator (ListIterator a) Source # 
Navigator a => Iterator (Leafs a) Source # 
Navigator a => Iterator (Horizontal a) Source # 
Navigator a => Iterator (LevelOrder a) Source # 
Navigator a => Iterator (PostOrder a) Source # 
Navigator a => Iterator (PreOrder a) 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