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

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