you are viewing a single comment's thread
view the rest of the comments
[–] 2 points 2 years ago

Looks vaguely like Stream::peek from Java, I think? There's an equivalent method in Iterator::inspect.

  • source
  • parent