• GissaMittJobb@lemmy.ml
    link
    fedilink
    arrow-up
    2
    ·
    10 months ago

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