zipWithIndexString


Description:

public static ArrayList<Pair<int,string>> zipWithIndexString (ArrayList<string> list)

Creates a list of Pairs with each element and its index.

Example:

    var indexed = Lists.zipWithIndexString (list);
// indexed[0] = Pair(0, "a")

Parameters:

list

the source list.

Returns:

an ArrayList of (index, element) Pairs.