Skip to content
richardszalay edited this page May 20, 2011 · 3 revisions

Creates a plan from a pattern (see when for more details)

function Pattern.then(selector : Function) : Plan@

Where selector is a function that accepts one argument for each sequence in the pattern. The class of each argument can be determined from Pattern.types.

Example:
function (x : sourceAClass, y : sourceBClass) : returnClass