Pstutter:
Filter:

Pstutter : FilterPattern : Pattern : AbstractFunction : Object

repeat input stream values
NOTE: It is recommended to use Pdup instead. This class is retained for backwards compatibility.

WARNING: Pstutter will return Pdup

Description

repeat each element n times.

This is also a response to Pattern: -dup

Class Methods

Pstutter.new(n, pattern)

Arguments:

n

The number of repeats for each new element. n may be a pattern, so the number of times can vary each iteration.

pattern

the pattern to repeat.

Returns:

Inherited class methods

Instance Methods

Inherited instance methods

Undocumented instance methods

.n

.n = value

Examples