[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
11.2.1 Controlling Array Traversal
By default, the order in which a ‘for (i in array)’ loop
scans an array is not defined; it is generally based upon
the internal implementation of arrays inside awk
.
Often, though, it is desirable to be able to loop over the elements
in a particular order that you, the programmer, choose. gawk
lets you do this; this subsection describes how.
11.2.1.1 Array Scanning Using A User-defined Function | Using a function to control scanning. | |
11.2.1.2 Controlling Array Scanning Order | Controlling the order in which arrays are scanned. |