I have two List objects, and I want to link them, like the zip() function in Python. I'm sure this is not available in the JDK, but is there something similar in a fairly common library like Apache Commons Collections ? Thank.
List
zip()
Functional Java has zip , zipWith and zipIndex , as you would expect from Haskell or Scala. (Indeed, the authors are largely Haskell programmers.)
zip
zipWith
zipIndex