Ada Programming/Keywords/reverse

This keyword is used in for loops to specify that the loop is performed in reverse order:

I  1 .. 10      Ada.Integer_Text_IO.Put (I); Ada.Text_IO.New_Line; ;

Outputs:

10         9          8          7          6          5          4          3          2          1

Wikibook

 * Ada Programming
 * Ada Programming/Keywords

Ada Quality and Style Guide


|Reverse Keywords:reverse