diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-07-22 20:41:54 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-07-22 20:41:54 -0700 |
commit | d6760da67732419d8043d1fdc43e8081f96ef1f1 (patch) | |
tree | 021b792bbba89c65d5fbfeaa9132f6325988d11b /eval.c | |
parent | 0dd87c5b673f94f06263ace234e689e953bf3393 (diff) | |
download | txr-d6760da67732419d8043d1fdc43e8081f96ef1f1.tar.gz txr-d6760da67732419d8043d1fdc43e8081f96ef1f1.tar.bz2 txr-d6760da67732419d8043d1fdc43e8081f96ef1f1.zip |
Adding nthcdr as accessor.
* eval.c (eval_init): Register nthcdr function.
* lib.c (nthcdr): New function.
* lib.h (nthcdr): Declared.
* share/txr/stdlib/place.tl (nthcdr): New defplace.
* txr.1: Documented.
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -4164,6 +4164,7 @@ void eval_init(void) reg_fun(intern(lit("reverse"), user_package), func_n1(reverse)); reg_fun(intern(lit("ldiff"), user_package), func_n2(ldiff)); reg_fun(intern(lit("last"), user_package), func_n1(last)); + 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("tuples"), user_package), func_n3o(tuples, 2)); |