Constructs an iterator that returns the elements of an object along with each
element's indices. Enumeration is useful when looping through an
object and a counter is required.
1 2 3
object to return indefinitely.
This function is intended to follow the convention used in Python's
enumerate function where the primary difference is that a list is
returned instead of Python's
Each call to
nextElem returns a list with two
the current value of
ienum is an alias to
ienumerate to save a few keystrokes.
iterator that returns the values of
object along with the
index of the object.
1 2 3 4 5 6 7 8 9 10 11
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.