diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-12-20 20:46:59 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-12-20 20:46:59 -0800 |
commit | 75b1508c61d3805d1678a8dabf8d48b9e76c8d37 (patch) | |
tree | 3eaf1d1d355152b483be81775933f5f665c66929 /stdlib/doc-syms.tl | |
parent | f0a538af2282cd9425c547b151779c982a3ebc03 (diff) | |
download | txr-75b1508c61d3805d1678a8dabf8d48b9e76c8d37.tar.gz txr-75b1508c61d3805d1678a8dabf8d48b9e76c8d37.tar.bz2 txr-75b1508c61d3805d1678a8dabf8d48b9e76c8d37.zip |
product/arithmetic each: missing block nil.
* stdlib/arith-each.tl (sys:vars-check): New function, copy
and pasted from each-prod.tl.
(sys:arith-each): New macro.
(sum-each, sum-each*, mul-each, mul-each*): Reworked using
sys:arith-each macro. This macro uses logic borrowed from
a stripped-down expand-each in the compiler.
* stdlib/each-prod.tl (sys:expand-each-prod,
sys:expand-arith-each-prod*): Add the block nil around the
mapping call, taking care that the initialization forms
are evaluated outside of the block, and their values bound to
gensyms that then form the function arguments.
* txr.1: Document the missing requirements for all the
affected macros that there must be an anonymous block around
the body, which, if used, determines the return value.
Diffstat (limited to 'stdlib/doc-syms.tl')
0 files changed, 0 insertions, 0 deletions