foreach_statement.txt 560 B

1234567891011121314151617181920212223242526
  1. foreach
  2. * desc
  3. Loops for each element in _from_ over its substatements. In particular, it stores in the beginning the elements from the _from_ set, then it runs the loop once for each element and makes this element available in _into_ during the loop. After the last loop, _into_ remains unchanged.
  4. * properties
  5. exec:yes
  6. ret_set:
  7. control_flow:yes
  8. * substatements
  9. exec:
  10. * depending_on
  11. input = set:from
  12. * changes
  13. output = set:into
  14. (There also might be changes by the substatements to other sets)
  15. * time
  16. (time_of_substatements * set:into)
  17. * space
  18. set:from