in scala/concurrent
trait QueueModule

trait QueueModule[a]()
extends Object
with ScalaObject

Module for dealing with queues.

Field Summary
abstract type t
     Type of queues.

Method Summary
abstract def append(l: t, x: a): t
     Append an element to a queue.
abstract def extractFirst(l: t, p: (a) => Boolean): Option[Tuple2[a,t]]
     Extract an element satisfying a predicate from a queue.
abstract def make: t
     Create an empty queue.

Methods inherited from java/lang/Object-class
clone, eq, equals, finalize, getClass, hashCode, notify, notifyAll, synchronized, toString, wait, wait, wait

Methods inherited from scala/Any-class
!=, ==, asInstanceOf, isInstanceOf, match

Field Detail

t

  abstract type t
Type of queues.
Method Detail

make

  abstract def make: t
Create an empty queue.

append

  abstract def append(l: t, x: a): t
Append an element to a queue.

extractFirst

  abstract def extractFirst(l: t, p: (a) => Boolean): Option[Tuple2[a,t]]
Extract an element satisfying a predicate from a queue.