DYNA25: Spring Edition is taking place on 7 April in New York City. More info

Loops, Folds and Tuples

For-loops Given an initial state defined by a number of variables, a for-loop iterates through its argument array modifying the state.     A←… ⋄ B←… ⋄ C←…       ⍝ initial state     :For item :In items         ⍝ iterating through array “items”         A←A … item            ⍝ new value for A depending on item         C←C … A … item      ⍝ new value for C depending on A and item         …                     ⍝ state updated     :EndFor     A B C                       ⍝ […]

Get Support

Technical advice and assistance on all aspects of Dyalog usage is available by e-mail (support@dyalog.com) and/or telephone (+44 1256 830030 – limited to U.K. office hours). Limited advice on design and coding is available, but is not intended to replace the use of the printed and on-line documentation. Except when reporting an issue with the software, users are encouraged to seek advice from the user community via the Dyalog Forum (reading the content of the forums does not require membership).

Search our website...