PSVdif:
Filter:

PSVdif : Psieve : Pattern : AbstractFunction : Object
ExtensionExtension

Sieve pattern for difference of integer generators with point output
Source: Psieve.sc

Description

Pattern for difference of integer generators with point output. Corresponds to Sieve's methods Sieve: *dif and Sieve: -dif. For an introduction and more examples see Sieves and Psieve patterns.

Class Methods

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

Creates a new PSVdif 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 zero and its positive multiples.

maxLength

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

limit

Integer. Limit up to which integers can be returned by the stream. If no limit is passed, returned integers might go up to default limit 65536.

Inherited class methods

Instance Methods

Inherited instance methods

Examples