Jump to content

Iterators: Difference between revisions

m
Line 89:
any subclass of AbstractRange, UnitRange, Tuple, Number, AbstractArray, BitSet, IdDict, Dict,
WeakKeyDict, EachLine, AbstractString, Set, Pair, and NamedTuple. In particular, Julia has an
extensive set of functions which act on lists and vectors. Julia's Iterators function can implement
implement the C++ example:
<lang julia>function PrintContainer(iterator)
iter = Iterators.Stateful(iterator)
4,104

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.