Skip to content

Instantly share code, notes, and snippets.

@ykubota
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ykubota/b84fc369c5e0a0873e20 to your computer and use it in GitHub Desktop.
Save ykubota/b84fc369c5e0a0873e20 to your computer and use it in GitHub Desktop.
# 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