Plet:
Filter:

Plet : Pattern : AbstractFunction : Object

Define a value within the scope (namespace) of a Plambda
Source: Plambda.sc

Description

Plet/Pget are used to share data between patterns inside of a Plambda

Plet defines a variable containing a pattern or data for sharing within the scope of a Plambda.

Using the Pget class, the contents of this variable can then be accessed by key in other patterns within the Plambda.

Class Methods

Plet.new(key, pattern, return)

Arguments:

key

The name of the variable

pattern

The contents of the variable

return

If return is nil, the pattern will be returned. If not nil, the contents of the return argument will be returned while the variable defined by the Plet will be set to the value of pattern

Inherited class methods

Instance Methods

.storeArgs

.embedInStream(inval)

Arguments:

inval

.pattern

.pattern = value

.silent

.key

.key = value

.return

.return = value

Inherited instance methods

Examples