PSVop_i:
Filter:

PSVop_i : Psieve : Pattern : AbstractFunction : Object
ExtensionExtension

Sieve pattern for arbitrary set operations of integer generators with interval output
Source: Psieve.sc

Description

Pattern for arbitrary set operations of integer generators with interval output. For an introduction and more examples see Sieves and Psieve patterns.

Class Methods

PSVop_i.new(genList, op: 'u', difIndex: 0, maxLength: inf, limit)

Creates a new PSVop_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.

op

One of the Symbols 'u', 's', 'sd', 'd' as abbreviations for set operations 'union', 'sect', 'symdif', 'dif' or a Pattern/Stream to produce such. Defaults to 'u'.

difIndex

Integer or a Pattern/Stream to produce such. Determines the generator from which will be subtracted in case of operation 'dif'. Defaults to 0.

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.

Inherited class methods

Instance Methods

Inherited instance methods

Examples