Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# streams: some indexable collection
IntStream.range(0, streams.size())
.forEach(index ->
some.process(
index,
streams.get(index)
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.