zip


Description:

public static ArrayList<Pair<A,B>> zip<A,B> (ArrayList<A> a, ArrayList<B> b)

Combines two lists into list of pairs. Result size is minimum of both input sizes.

Parameters:

a

first list.

b

second list.

Returns:

zipped pairs.