Changeset 30575 in project


Ignore:
Timestamp:
03/16/14 15:59:46 (7 years ago)
Author:
certainty
Message:

data-generators: added example for gen-series

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/data-generators

    r30571 r30575  
    262262'''add1''' in each step.
    263263
     264Example:
     265<enscript highlight=scheme>
     266;; create lists with increasing size from 1 to 10
     267(<- 10 (gen-list-of (fixnums) (gen-series 1 10 add1)))
     268</enscript>
     269
    264270<procedure>(gen-series start end step)</procedure>
    265271Generator that generates values from '''start''' to '''end''' with steps as specified by the one-argument-procedure '''step'''.
Note: See TracChangeset for help on using the changeset viewer.