Wolfram Screencast & Video Gallery

This page requires that JavaScript be enabled in your browser.
Learn how »

Iterators

Iterators are a generalization of lists that are accessed one element at a time. Iterators allow us to work with data whose length is infinite or unknown, and they avoid the explicit generation of all elements at the same time by using incremental generators. We show an implementation of iterators that allows us to use them like lists, with natural Wolfram Language syntax. Along the way, we explore mutable objects and constructors, syntax transformation, working with unevaluated expressions, parallelization and compilation.

Was this video helpful?