Changeset 13853 in project


Ignore:
Timestamp:
03/21/09 03:05:23 (11 years ago)
Author:
Kon Lovett
Message:

Added locale.

Location:
wiki/eggref
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/srfi-45

    r13808 r13853  
    1515For more information see [[http://srfi.schemers.org/srfi-45/srfi-45.html|SRFI 45]].
    1616
    17 === delay
     17=== Constructors
    1818
    19 <macro>(delay EXPRESSION)</macro>
     19==== lazy
    2020
    21 Returns a promise, a delayed evaluation of {{EXPRESSION}}.
    22 
    23 Mentioned only for completeness.
    24 
    25 === lazy
    26 
    27 <macro>(lazy EXPRESSION)</macro>
     21<macro>(lazy EXPRESSION) => PROMISE</macro>
    2822
    2923Returns a promise for {{EXPRESSION}}.
     
    3226before the next iteration, so as to avoid storage leaks.
    3327
    34 === eager
     28==== eager
    3529
    36 <macro>(eager EXPRESSION)</macro>
     30<procedure>(eager EXPRESSION) => PROMISE</procedure>
    3731
    3832Returns a promise but immediately evaluates {{EXPRESSION}}.
     
    4135algorithms.
    4236
    43 === force
     37==== delay
    4438
    45 <procedure>(force OBJECT)</procedure>
     39<macro>(delay EXPRESSION) => PROMISE</macro>
    4640
    47 Assuming the {{OBJECT}} is some kind of promise, returns the result of the
    48 delayed evaluation.
     41Returns an R5RS promise, a delayed evaluation of {{EXPRESSION}}.
    4942
    50 === promise?
     43=== Predicates
    5144
    52 <procedure>(promise? OBJECT)</procedure>
     45==== promise?
    5346
    54 Some kind of promise?
     47<procedure>(promise? OBJECT) => BOOLEAN</procedure>
    5548
    56 === recursive-promise?
     49Some kind of promise? An R5RS promise or a recursive promise.
    5750
    58 <procedure>(recursive-promise? OBJECT)</procedure>
     51==== recursive-promise?
    5952
    60 Recursive promise?
     53<procedure>(recursive-promise? OBJECT) => BOOLEAN</procedure>
    6154
    62 === lazy-promise?
     55Recursive promise? A lazy or an eager promise.
    6356
    64 <procedure>(lazy-promise? OBJECT)</procedure>
     57==== lazy-promise?
    6558
    66 Lazy recursive promise?
     59<procedure>(lazy-promise? OBJECT) => BOOLEAN</procedure>
    6760
    68 === eager-promise?
     61==== eager-promise?
    6962
    70 <procedure>(eager-promise? OBJECT)</procedure>
     63<procedure>(eager-promise? OBJECT) => BOOLEAN</procedure>
    7164
    72 Eager recursive promise?
     65=== Operations
     66
     67==== force
     68
     69<procedure>(force PROMISE) => OBJECT</procedure>
     70
     71Returns the result of the evaluation of {{PROMISE}}.
    7372
    7473
     
    8079(import srfi-45)
    8180</enscript>
     81
     82or
    8283
    8384<enscript language=scheme>
Note: See TracChangeset for help on using the changeset viewer.