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

PLnaryFunc
ExtensionExtension

dynamic scope PnaryFunc 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 PLnaryFunc object.

Arguments:

func

Symbol or func arg. If a Symbol is passed, list can be assigned to an envir variable later on. Can be dynamically replaced by a Pattern or Stream.

pat

Symbol or 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

They are starting with input for the Function's second arg, as items from pat will be passed to its first. 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

See also Ex.5b.