I am playing around with lazy functional operations in Java SE 8, and I want to map an index i to a pair / tuple (i, value[i]), then <
map
i
(i, value[i])
You can have a look on these built-in classes :