Julia LanguageIterables

Syntax

  • start(itr)
  • next(itr, s)
  • done(itr, s)
  • take(itr, n)
  • drop(itr, n)
  • cycle(itr)
  • Base.product(xs, ys)

Parameters

ParameterDetails
ForAll Functions
itrThe iterable to operate on.
Fornext and done
sAn iterator state describing the current position of the iteration.
Fortake and drop
nThe number of elements to take or drop.
ForBase.product
xsThe iterable to take first elements of pairs from.
ysThe iterable to take second elements of pairs from.
...(Note that product accepts any number of arguments; if more than two are provided, it will construct tuples of length greater than two.)