PSVsect_i:
Filter:
miSCellaneous_lib/Classes (extension) | Libraries > miSCellaneous > Sieves and Psieve Patterns | Streams-Patterns-Events > Sieves and Psieve Patterns

PSVsect_i
ExtensionExtension

Sieve pattern for intersection of integer generators with interval output

Description

Pattern for intersection of integer generators with interval output. Corresponds to Sieve's methods Sieve: *sect_i and Sieve: -sect_i. For an introduction and more examples see Sieves_and_Psieve_patterns.

Class Methods

.new

Creates a new PSVsect_i object.

Arguments:

genList

An array of generators. Allowed generators: Integers, Streams or Patterns producing intervals or Sieves itself. Integers and Stream/Pattern output must be strictly positive. Integers as generators produce constant intervals.

maxLength

Integer. Maximum number of items, which the stream will return. Defaults to inf.

limit

Integer. Limit up to which intervals can be returned by the stream. If no limit is passed, integer intervals might be returned until default summation limit of 65536.

Examples