PL:
Filter:
miSCellaneous_lib/Classes (extension) | Libraries > miSCellaneous > PLx suite | Streams-Patterns-Events > PLx suite

PL
ExtensionExtension

dynamic scope placeholder pattern

Description

Takes Symbol args for later reference by the Streams, which will read from variables in the Environments of their instantiation. See PLx_suite.

NOTE: PL follows a paradigm of immediate replacement. There are cases though where you might prefer to finish streams or substreams before replacement, especially when syncing comes into play, for these options consider PLn and the cutItems arg of PLx list patterns.

Class Methods

.new

Creates a new PL object.

Arguments:

item

Symbol or other Object. If a Symbol is passed, item can be assigned to an envir variable later on. Can be dynamically replaced by Patterns or Streams.

repeats

Symbol or repeats arg. If a Symbol is passed, repeats can be assigned to an envir variable later on. Defaults to inf.

type

Expects 1 or inf. Defines how items other than Patterns or Streams should be embedded. Defaults to 1. Rather to be used by other PLx Patterns than by the user.

envir

Dictionary or one of the Symbols \top, \t (topEnvironment), \current, \c (currentEnvironment). Dictionary to be taken for variable reference. Defaults to \current.

Examples