Data.Graph.Inductive.Internal.Queue

fgl-5.8.3.0: Martin Erwig's Functional Graph Library

Safe Haskell | Safe-Inferred
Language | Haskell98

Data.Graph.Inductive.Internal.Queue

Contents

- Type
- Operations

Synopsis

- data Queue a = MkQueue [a] [a]
- mkQueue :: Queue a
- queuePut :: a -> Queue a -> Queue a
- queuePutList :: [a] -> Queue a -> Queue a
- queueGet :: Queue a -> (a, Queue a)
- queueEmpty :: Queue a -> Bool

# Type

data Queue a #

Constructors

MkQueue [a] [a] |

# Operations

mkQueue :: Queue a #

queuePut :: a -> Queue a -> Queue a #

queuePutList :: [a] -> Queue a -> Queue a #

queueGet :: Queue a -> (a, Queue a) #

queueEmpty :: Queue a -> Bool #