Creates a list of Pairs with each element and its index.
Example:
var indexed = Lists.zipWithIndexString (list);
// indexed[0] = Pair(0, "a")
| list |
the source list. |
|
an ArrayList of (index, element) Pairs. |