scala

class Responder

[source: scala/Responder.scala]

abstract class Responder[+A]
extends AnyRef
Instances of responder are the building blocks of small programs written in continuation passing style. By using responder classes in for comprehensions, one can embed domain-specific languages in Scala while giving the impression that programs in these DSLs are written in direct style.
Author
Martin Odersky
Burak Emir
Version
1.0
Direct Known Subclasses:
Future

Method Summary
def filter (p : (A) => Boolean) : Responder[A]
def flatMap [B](f : (A) => Responder[B]) : Responder[B]
def foreach (k : (A) => Unit) : Unit
def map [B](f : (A) => B) : Responder[B]
abstract def respond (k : (A) => Unit) : Unit
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
abstract def respond(k : (A) => Unit) : Unit

def foreach(k : (A) => Unit) : Unit

def map[B](f : (A) => B) : Responder[B]

def flatMap[B](f : (A) => Responder[B]) : Responder[B]

def filter(p : (A) => Boolean) : Responder[A]