Does list comprehension update the list progressively, or does it store the update list in memory or something and then update it after it parses the whole list.
My reason for asking is I have a list of arrays where I define the first one and then i iterate using a for loop applying an operation on the first array to get the second one. I am wondering if I can use list comprehension. Am i able to reference the previously updated element in list comprehension, or does it all update at once at the end?