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

PLhprand
ExtensionExtension

dynamic scope Phprand 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.

Class Methods

.new

Creates a new PLhprand object.

Arguments:

lo

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

hi

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

length

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

envir

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

Examples

Compare this example with lo-weighted PLlprand