-
Language control methods Some patterns mimic language-style control methods: conditionals ( Pif ), loops ( Pwhile ) and error cleanup ( Pprotect ). Pif(condition, iftrue, iffalse, default): Evaluates a pattern 'condition' that returns true ...
-
Math on patterns Often, there is not a pattern that delivers exactly the desired result by itself. But, other operations can be applied to patterns, to manipulate one pattern's output and turn it into something else. Some of these operation ...
-
Inner workings of patterns Patterns as streams As noted, patterns by themselves don't do much. They have to be turned into streams first; then, values are requested from a stream, not from the pattern. For most patterns, the stream is an in ...
-
From words to phrases A single pattern by itself is not so exciting. But patterns can be used together to get more complex results. Patterns within list patterns We saw list patterns ( Pseq , Prand , etc.) that returned numbers from a prese ...
-
... ower range 70% of the time, and a higher range the other 30%. For purely random patterns, this is simple because the pattern for each range has no memory (the next value does not depend on the previous value in any perceptible way). The ran ...
-
Time-based patterns "Time-based patterns" here are value patterns that use time as part of their calculation. Event patterns are naturally time-driven when played on a clock. (Technically it's possible to request events from an event stream ...
-
Understanding Streams, Patterns and Events - Part 4 The preceeding sections showed how to use Streams and Patterns to generate complex sequences of values for a single parameter at a time. This section covers Environments and Events, which ...
-
Patterns in bold are included in Pattern tests Patterns underlined have help pages Patterns italicized have been tested but not included in the Pattern tests page. [ FilterPattern [ PfadeIn [ PfadeOut ] Pavaroh PdegreeToKey Pseed Prewrite P ...
-
Sharing data between patterns So far, we've seen patterns that are independent of each other. A single Pbind works on its own information, which is not available to other Pbinds. Also, for instance, the 'degree' pattern in a Pbind is not aw ...
-
Pbindf bind several value patterns to one existing event stream by binding keys to values Inherits from: Object : AbstractFunction : Pattern : FilterPattern Pbindf adds several value streams into one existing event stream. Each value stream ...