Skip to content

Support iterating over pairs in foreach

In !3913 (closed), foreach (IN ZIP_LISTS) is proposed. Related is foreach (first second IN LISTS) which takes two items from the lists each iteration. This requires a policy as mentioned in this discussion. @purpleKarrot proposes foreach (TUPLE) to signal this case. foreach (IN TUPLES) might also work.

Cc: @brad.king @zaufi

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information