diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-09-18 22:54:47 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-09-18 22:54:47 -0700 |
commit | 34a8e91898d551d036742fd6fb45c57b8e95ad52 (patch) | |
tree | 472850b44473d47e221d12e75f2c1e8d34de712c /eval.c | |
parent | d8ef238e540a00b77d7c66645b266922a5ecd6fa (diff) | |
download | txr-34a8e91898d551d036742fd6fb45c57b8e95ad52.tar.gz txr-34a8e91898d551d036742fd6fb45c57b8e95ad52.tar.bz2 txr-34a8e91898d551d036742fd6fb45c57b8e95ad52.zip |
New function: flatcar.
* eval.c (eval_init): Register flatcar intrinsic.
* lib.c (flatcar): New function.
* lib.h (flatcar): Declared.
* txr.1: Documented.
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -4211,6 +4211,7 @@ void eval_init(void) reg_fun(intern(lit("nthcdr"), user_package), func_n2(nthcdr)); reg_fun(intern(lit("flatten"), user_package), func_n1(flatten)); reg_fun(intern(lit("flatten*"), user_package), func_n1(lazy_flatten)); + reg_fun(intern(lit("flatcar"), user_package), func_n1(flatcar)); reg_fun(intern(lit("tuples"), user_package), func_n3o(tuples, 2)); reg_fun(intern(lit("partition-by"), user_package), func_n2(partition_by)); reg_fun(intern(lit("partition"), user_package), func_n2(partition)); |