diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-02-02 18:52:48 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-02-02 18:52:48 -0800 |
commit | ee93befb6473258ef880b5d4175487a4d901fb5e (patch) | |
tree | 322dc867de94b8f9aca85d6462234bdf600d34d0 /ftw.c | |
parent | c9cab7138636c6c1d6e47f8d1a4053bec2dd0ad4 (diff) | |
download | txr-ee93befb6473258ef880b5d4175487a4d901fb5e.tar.gz txr-ee93befb6473258ef880b5d4175487a4d901fb5e.tar.bz2 txr-ee93befb6473258ef880b5d4175487a4d901fb5e.zip |
sum and prod take keyfun argument.
* eval.c (eval_init): Adjust registrations of sum and prod to
be binary functions with an optional argument.
* lib.c (nary_op_keyfun, sumv, prodv): New static functions.
(sum, prod): Implement optional keyfun argument via sumv and
prodv helpers.
* lib.h (sum, prod): Declarations updated.
* txr.1: Documentation updated.
Diffstat (limited to 'ftw.c')
0 files changed, 0 insertions, 0 deletions