• leggettc18@programming.dev
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 years ago

    Most languages I’ve seen with for each loops have a way to get the index alongside the value, usually with a second variable name after the first separated by a comma.