What should be the return type of a zip function? (zip as in most other languages, e.g. read here)
zip
I thought about some Pair-type but that
Here is a start.
public class Pair { private T1 first; private T2 second; public Pair(T1 first, T2 second) { this.first = first; this.second = second; } public T1 getFirst() { return first; } public T2 getSecond() { return second; } }