summaryrefslogtreecommitdiffstats
path: root/vm.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-06-09 23:58:55 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-06-09 23:58:55 -0700
commit00b6397408934f95c16f3fa33959fb17e34f63c9 (patch)
tree0d1a30809b17dae750bb0216511c0129e54f3e8b /vm.h
parent864d1c6fe182661a7bd7d4eda928f8a19318b651 (diff)
downloadtxr-00b6397408934f95c16f3fa33959fb17e34f63c9.tar.gz
txr-00b6397408934f95c16f3fa33959fb17e34f63c9.tar.bz2
txr-00b6397408934f95c16f3fa33959fb17e34f63c9.zip
arith: switch sum and prod to seq_iter.
* arith.c (nary_op_keyfun): Static function removed. (nary_op_seq, nary_op_seq_keyfun): New static functions. (sumv, prodv): Static functions removed. (sum, prod): Reimplement using nary_op_seq and nary_op_seq_keyfun. Conversion of sequence to list smuggled via args is gone. * tests/016/arith.tl: new sum and prod tests. * txr.1: Note about sum and prod taking an iterable sequence added.
Diffstat (limited to 'vm.h')
0 files changed, 0 insertions, 0 deletions