summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-09-18 22:54:47 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-09-18 22:54:47 -0700
commit34a8e91898d551d036742fd6fb45c57b8e95ad52 (patch)
tree472850b44473d47e221d12e75f2c1e8d34de712c /eval.c
parentd8ef238e540a00b77d7c66645b266922a5ecd6fa (diff)
downloadtxr-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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index 95eea32f..bea71dd4 100644
--- a/eval.c
+++ b/eval.c
@@ -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));