diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-12-04 02:20:06 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-12-04 02:20:06 -0800 |
commit | 3b13057d50e58625e72ad9f18a86f4193a838099 (patch) | |
tree | 416f63a94c56c845696ca13cfd85e4c6bb3060ef /eval.c | |
parent | 536216aa9932b9ab5627f7defb6608b67709c547 (diff) | |
download | txr-3b13057d50e58625e72ad9f18a86f4193a838099.tar.gz txr-3b13057d50e58625e72ad9f18a86f4193a838099.tar.bz2 txr-3b13057d50e58625e72ad9f18a86f4193a838099.zip |
tuples*: new function.
* eval.c (eval_init): Register tuples* intrinsic.
* lib.c (tuples_star_func): New static function.
(tuples_star): New function.
* lib.h (tuples_star): Declared.
* tests/012/seq.tl: New test cases.
* txr.1: Documented.
* stdlib/doc-syms.tl: Updated.
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -6936,6 +6936,7 @@ void eval_init(void) reg_fun(intern(lit("flatcar"), user_package), func_n1(flatcar)); reg_fun(intern(lit("flatcar*"), user_package), func_n1(lazy_flatcar)); reg_fun(intern(lit("tuples"), user_package), func_n3o(tuples, 2)); + reg_fun(intern(lit("tuples*"), user_package), func_n3o(tuples_star, 2)); reg_fun(intern(lit("partition-by"), user_package), func_n2(partition_by)); reg_fun(intern(lit("partition"), user_package), func_n2(partition)); reg_fun(intern(lit("split"), user_package), func_n2(split)); |