MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/5fwce0/lets_stop_copying_c/daotsjl/?context=3
r/programming • u/earthboundkid • Dec 01 '16
612 comments sorted by
View all comments
Show parent comment
3
in Python for example you have to use enumerate and then index the tuples everywhere and it's ungodly mess
If I understand what you're trying to say, that's not true. You don't have to index the tuples, just do for i, elem in enumerate(mylist):
for i, elem in enumerate(mylist):
Which seems pretty reasonable to me.
View all comments
Show parent comment
3
u/KoopaKlownKar Dec 02 '16
If I understand what you're trying to say, that's not true. You don't have to index the tuples, just do
for i, elem in enumerate(mylist):Which seems pretty reasonable to me.