Changeset 13022 in project


Ignore:
Timestamp:
01/17/09 02:04:28 (12 years ago)
Author:
Kon Lovett
Message:

Added optional final expr to dotimes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/miscmacros

    r12166 r13022  
    3939Executes {{BODY ...}} {{TIMES}} times, with the variable {{it}} bound to the count-down value.
    4040
    41 <macro>(dotimes (VAR TIMES) BODY ...)</macro>
     41<macro>(dotimes (VAR TIMES [FINAL]) BODY ...)</macro>
    4242
    4343Executes {{BODY ...}} {{TIMES}} times, with the variable {{VAR}} bound to the count-up value.
     44
     45Returns the result of the {{FINAL}} expression or {{(void)}} when no {{FINAL}} expression.
    4446
    4547<macro>(while TEST BODY ...)</macro>
Note: See TracChangeset for help on using the changeset viewer.