Range types


The Range classes provide iteration for containers. The underlying container must persist while interacting with a Range based on that container.


The following classes are Range classes. In general, these classes are not used directly; instead, invoke range(container) to create a Range for a container.


In general, a Range is generated using range(container).



A quick way to access the last item in an AppRecordList (or any container) is range(myList).back();

Ranges are used frequently in algorithms. For more information, see Part 5 - Algorithms and Lambdas.

A Range can be iterated using a ChaiScript for loop.

Related Topics

Language Types