summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-10-07 21:47:04 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-10-07 21:47:04 -0700
commit2e10dec26c52850462ffbcdb0fcd32d029f192e4 (patch)
tree1b6f4f254bbb389f87421da2cc44cddac2fbdbb0 /txr.1
parent8b154a579becffc5c973797ff7ac7b162fd86b30 (diff)
downloadtxr-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.121
1 files changed, 21 insertions, 0 deletions
diff --git a/txr.1 b/txr.1
index 6e612436..9b6d6490 100644
--- a/txr.1
+++ b/txr.1
@@ -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 *)