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
Burak Emir
Version
1.0
Since
revision 6897 (will be 2.1.1)
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]