mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-21 06:39:16 +02:00
Finished docs for now
This commit is contained in:
parent
a54bec70e9
commit
21a3c38f38
1 changed files with 8 additions and 2 deletions
|
@ -12,20 +12,26 @@ For more information see the [R<sup>7</sup>RS Scheme Specification](../../r7rs.p
|
||||||
|
|
||||||
#delay
|
#delay
|
||||||
|
|
||||||
(delay {expression}) lazy library syntax
|
(delay {expression})
|
||||||
|
|
||||||
|
Return a promise object that can be asked in the future (via `force`) to evaluate `{expression}` and return the result.
|
||||||
|
|
||||||
#force
|
#force
|
||||||
|
|
||||||
(force promise)
|
(force promise)
|
||||||
|
|
||||||
|
Force the value of a promise.
|
||||||
|
|
||||||
#delay-force
|
#delay-force
|
||||||
|
|
||||||
(delay-force {expression}) lazy library syntax
|
(delay-force {expression})
|
||||||
|
|
||||||
#make-promise
|
#make-promise
|
||||||
|
|
||||||
(make-promise obj)
|
(make-promise obj)
|
||||||
|
|
||||||
|
Return a promise which will return `obj` when forced. This function is similar to delay but does not delay its argument: it is a procedure rather than syntax. If `obj` is already a promise, it is returned.
|
||||||
|
|
||||||
#promise?
|
#promise?
|
||||||
|
|
||||||
(promise? obj)
|
(promise? obj)
|
||||||
|
|
Loading…
Add table
Reference in a new issue