this post was submitted on 30 Jul 2023
1 points (100.0% liked)

Memes and jokes about everything programming and CS

266 readers
12 users here now

For anything funny related to programming and software development.

founded 2 years ago
MODERATORS
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/ProgrammerHumor by /u/da_Aresinger on 2023-07-30 23:21:59.

you are viewing a single comment's thread
view the rest of the comments
[–] leggettc18@programming.dev 1 points 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.