diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-10-07 21:47:04 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-10-07 21:47:04 -0700 |
commit | 2e10dec26c52850462ffbcdb0fcd32d029f192e4 (patch) | |
tree | 1b6f4f254bbb389f87421da2cc44cddac2fbdbb0 /txr.1 | |
parent | 8b154a579becffc5c973797ff7ac7b162fd86b30 (diff) | |
download | txr-2e10dec26c52850462ffbcdb0fcd32d029f192e4.tar.gz txr-2e10dec26c52850462ffbcdb0fcd32d029f192e4.tar.bz2 txr-2e10dec26c52850462ffbcdb0fcd32d029f192e4.zip |
Adding promisep function.
* eval.c (promisep): New static function.
(eval_init): Registered promisep intrinsic.
* txr.1: Documented promisep.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -15624,6 +15624,27 @@ the promise will take on the value of .meta expression or the assigned value. +.coNP Function @ promisep +.synb +.mets (promisep << object ) +.syne +.desc +The +.code promisep +function returns +.code t +if +.meta object +is a promise object: an object created by the +.code delay +macro. Otherwise it returns +.codn nil . + +Note: promise objects are conses. The +.code typeof +function applied to a promise returns +.codn cons . + .coNP Macro @ mlet .synb .mets (mlet >> ({ sym | >> ( sym << init-form )}*) << body-form *) |