diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2012-03-16 21:43:51 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2012-03-16 21:43:51 -0700 |
commit | 8bb336298d0bf4e165fa03f7f2a219ddad6e466f (patch) | |
tree | 2b102c6c3fd927a4589b4b1cf75099c9cdc97384 /txr.vim | |
parent | 5e765926b07b544f9dd4860af5f0e669432434ea (diff) | |
download | txr-8bb336298d0bf4e165fa03f7f2a219ddad6e466f.tar.gz txr-8bb336298d0bf4e165fa03f7f2a219ddad6e466f.tar.bz2 txr-8bb336298d0bf4e165fa03f7f2a219ddad6e466f.zip |
* eval.c (eval_init): New intrinsic functions
chain, andf, orf, iff.
* lib.c (chainv): New function.
(do_and, do_or): Generalized to handle functions of
any arguments via apply.
(andf, orf): Turn do_and and do_or into variadic function instead of a
monadic function.
(do_iff): New static function.
(andv, orv, iff): New functions.
* lib.h (chainv, andv, orv, iff): New functions declared.
* txr.1: Doc stubs created.
* txr.vim: Updated.
Diffstat (limited to 'txr.vim')
-rw-r--r-- | txr.vim | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -49,7 +49,8 @@ syn keyword txl_keyword contained zerop evenp oddp > < >= <= max min syn keyword txl_keyword contained search-regex match-regex regsub syn keyword txl_keyword contained make-hash hash hash-construct gethash sethash pushhash remhash syn keyword txl_keyword contained hash-count get-hash-userdata set-hash-userdata hashp maphash -syn keyword txl_keyword contained hash-eql hash-equal eval *stdout* *stdin* *stddebug* +syn keyword txl_keyword contained hash-eql hash-equal eval chain andf orf iff +syn keyword txl_keyword contained *stdout* *stdin* *stddebug* syn keyword txl_keyword contained *stderr* format print pprint tostring tostringp syn keyword txl_keyword contained make-string-input-stream syn keyword txl_keyword contained make-string-byte-input-stream make-string-output-stream |