Pseries:
Filter:
Classes | Streams-Patterns-Events > Patterns > List

Pseries : Pattern : AbstractFunction : Object

arithmetic series pattern
Source: Patterns.sc

Description

Returns a stream that behaves like an arithmetic series.

Class Methods

Pseries.new(start: 0, step: 1, length: inf)

Arguments:

start

start value.

step

addition factor.

length

number of values produced.

Inherited class methods

Instance Methods

Inherited instance methods

Undocumented instance methods

.embedInStream(inval)

.length

.length = value

.start

.start = value

.step

.step = value

Examples