blackdrag commented on PR #2169:
URL: https://github.com/apache/groovy/pull/2169#issuecomment-2764527455

   Daniel's variant is very near to what I know from Python:
   
       for idx,data in enumerate(content_list):
           print(idx) # will print the index of the loop starting from 0
           print(data) # will print the actual data,
           print(content_list[idx]) # will manually access the list using the 
index. both this and data will  print the same thing
   
   Which means "for (idx,data in list)" and "for (idx,data : list)" would also 
be needed besides the typed variants. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@groovy.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to