PSVunion_oi:
Filter:

PSVunion_oi : Psieve : Pattern : AbstractFunction : Object
ExtensionExtension

Sieve pattern for union of integer generators with offsets and interval output
Source: Psieve.sc

Description

Pattern for union of integer generators with offsets and interval output. Corresponds to Sieve's methods Sieve: *union_oi and Sieve: -union_oi. For an introduction and more examples see Sieves and Psieve patterns.

Class Methods

PSVunion_oi.new(genList, maxLength: inf, limit)

Creates a new PSVunion_oi object.

Arguments:

genList

An array of generators and corresponding offsets. 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. Offsets must be integers.

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 up to default summation limit of 65536.

Inherited class methods

Instance Methods

Inherited instance methods

Examples