summaryrefslogtreecommitdiffstats
path: root/lib.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-07-22 20:41:54 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-07-22 20:41:54 -0700
commitd6760da67732419d8043d1fdc43e8081f96ef1f1 (patch)
tree021b792bbba89c65d5fbfeaa9132f6325988d11b /lib.h
parent0dd87c5b673f94f06263ace234e689e953bf3393 (diff)
downloadtxr-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 'lib.h')
-rw-r--r--lib.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib.h b/lib.h
index 7a37030a..caab6b2a 100644
--- a/lib.h
+++ b/lib.h
@@ -457,6 +457,7 @@ loc tail(val cons);
loc term(loc head);
loc lastcons(val list);
val last(val list);
+val nthcdr(val pos, val list);
loc ltail(loc cons);
val pop(val *plist);
val upop(val *plist, val *pundo);