From 21a3c38f3827ab8cb2f961997c1747b5e24ee2c1 Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Wed, 28 Sep 2016 17:53:56 -0400 Subject: [PATCH] Finished docs for now --- docs/api/scheme/lazy.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/api/scheme/lazy.md b/docs/api/scheme/lazy.md index a565b813..d62cb25a 100644 --- a/docs/api/scheme/lazy.md +++ b/docs/api/scheme/lazy.md @@ -12,20 +12,26 @@ For more information see the [R7RS Scheme Specification](../../r7rs.p #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 promise) +Force the value of a promise. + #delay-force - (delay-force {expression}) lazy library syntax + (delay-force {expression}) #make-promise (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? obj)