Changeset 30576 in project


Ignore:
Timestamp:
03/16/14 16:03:09 (7 years ago)
Author:
certainty
Message:

data-generators: added example for gen-transform

File:
1 edited

Legend:

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

    r30575 r30576  
    342342Generator that retrieves values from '''gen''' and applies '''transformer''' to this value.
    343343
     344<enscript highlight=scheme>
     345;; gen positive fixnums
     346
     347(gen-transform abs (fixnums))
     348</enscript>
     349
    344350<syntax>(with-size size-spec ...)</syntax>
    345351Use this to constrain the size of the data generated by the combinators.
Note: See TracChangeset for help on using the changeset viewer.