WLJS LogoWLJS Notebook

IncrementalObject

IncrementalObject[type][args]

creates an object that returns values one at a time according to the incremental object type. This can avoid constructing a complete result in memory.

Example

obj = IncrementalObject["Identity"][{val[1], val[2]}];

NextValue[obj]
NextValue[obj]

When no values remain, NextValue returns a failure object.

See the official Wolfram Language reference for available incremental object types.

On this page