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

PLnaryop
ExtensionExtension

dynamic scope Pnaryop variant

Description

Takes Symbol args for later reference by the Streams, which will read from variables in the Environments of their instantiation. See PLx_suite. For replacing operators dynamically take PLnaryFunc with the operator wrapped into a Function.

Class Methods

.new

Creates a new PLnaryop object.

Arguments:

operator

Symbol or Pnaryop operator arg. If a Symbol is passed, list can be assigned to an envir variable later on.

pat

Symbol or Pnaryop pattern arg. If a Symbol is passed, list can be assigned to an envir variable later on. Can be dynamically replaced by Patterns or Streams.

arglist

Symbols or Pnaryop arglist arg. If Symbols are passed, arglist args can be assigned to envir variables later on. Can be dynamically replaced by Patterns or Streams.

envir

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

Examples

Ex.5a.