iterator

(redirected from Iterators)

iterator

(programming)
An object or routine for accessing items from a list, array or stream one at a time.

By extension, the term can be used for an object or routine for accesing items from any data structure that can be viewed as a list. For example, a traverser is an iterator for tree-shaped data structures.
Mentioned in ?
References in periodicals archive ?
Coverage includes syntax, type basics, numeric types, Boolean type and operators, strings and characters, arrays, variables and parameters, expressions and operators, statements, namespaces, classes, inheritance, the object type, structs, access modifiers, interfaces, enums, nested types, generics, delegates, events, Lambda expressions, anonymous methods, try statements and exceptions, enumeration and iterators, nullable types, operator overloading, extension methods, anonymous types, LINQ, dynamic binding, attributes, caller info attributes (C#5.
If_GLIBCXX_DEBUG is defined, some form of validation is performed on the supplied iterators.
0's fundamentals; an assortment of advanced topics such as operator overloading, type constraints, iterators, lambda expressions, etc.
In the original library different iterators process the list of Figs for each of these.
Pine, an educator who has been using Ruby since 2001, starts with simple one-line programs before moving on to more advanced structures that require the use of flow control, arrays and iterators and new classes of objects.
New chapters on generics, iterators and partial types and the Web cover all kinds of topics on everything from strings and expressions to structures, and are geared to solving the problem, not just offering a formula answer.
However, although it still includes while and until loops, in most cases their need has been supplanted by Ruby's very powerful object iterators.
C# programming language, including anonymous methods, iterators and
Other new features in Ada 2012 include enhancements to the containers library, additional expressiveness through features such as conditional expressions and more powerful iterators, and support for multicore platforms (task affinities, and the extension of the Ravenscar profile - standardized in Ada 2005 as an efficient and predictable tasking subset for high-integrity real-time systems - to multiprocessor and multicore environments).
Beginning with an overview of basic syntax, the volume covers strings, numbers, classes and objects, arrays, loops and iterators, conditional statements, exception handling, modules and mix-ins, debugging and testing and Ruby-on-Rails.
He then goes through collections such as the glob and opendir/readdir API, enumerating processes and modules, the Fibonacci sequence, container families, environmental maps, the Z-plane, and string tokenization, finishing up with the various forms of iterators.
The SGI(TM) application makes extensive use of iterators to traverse designs and maps to get directly at components very efficiently for complex design checks.