summaryrefslogtreecommitdiffstats
path: root/lib.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2023-09-21 16:52:13 -0700
committerKaz Kylheku <kaz@kylheku.com>2023-09-21 16:52:13 -0700
commitb0c3b95360c9e5b4aa54f19ec88e1b96a10b6d0a (patch)
treee78e8f45cc70769218a5055dad53a2be291f3e00 /lib.h
parent1bd49e57588269ac8f6e55aee80b82d5612694d2 (diff)
downloadtxr-b0c3b95360c9e5b4aa54f19ec88e1b96a10b6d0a.tar.gz
txr-b0c3b95360c9e5b4aa54f19ec88e1b96a10b6d0a.tar.bz2
txr-b0c3b95360c9e5b4aa54f19ec88e1b96a10b6d0a.zip
New functions: nested-vec-of and nested-vec.
* eval.c (eval_init): Register nestd-vec-of and nested-vec intrinsics. * lib.[ch] (vec_allocate, vec_own, vec_init): New static functions. (vector, copy_vec): Expressed in terms of new functions. (nested_vec_of_v, nested_vec_v): New functions. * args.[ch] (args_cat_from): New function. * tests/010/vec.tl: New tests. * txr.1: Documented.
Diffstat (limited to 'lib.h')
-rw-r--r--lib.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib.h b/lib.h
index 4c101501..e3cc0f8b 100644
--- a/lib.h
+++ b/lib.h
@@ -1262,6 +1262,8 @@ val replace_vec(val vec_in, val items, val from, val to);
val replace_obj(val obj, val items, val from, val to);
val fill_vec(val vec, val item, val from_in, val to_in);
val cat_vec(val list);
+val nested_vec_of_v(val initval, struct args *);
+val nested_vec_v(struct args *);
val lazy_stream_cons(val stream, val no_throw_close);
val lazy_str(val list, val term, val limit);
val lazy_str_force_upto(val lstr, val index);