From 7c2620a23a37fde4ef890acb444c4fbadf77dd33 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Thu, 6 Feb 2014 01:12:00 -0800 Subject: * hash.c (hash_grow, make_hash, make_similar_hash, copy_hash): Pass second argument to vector. * lib.c (vector): Takes additional argument specifying the value for the slots of the vector. (vector_list, sub_vec): Pass second argument to vector. * lib.h (vector): Declaration updated. * eval.c (eval_init): Register vector as two-argument function with one required arg. * txr.1: Updated. --- lib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib.h') diff --git a/lib.h b/lib.h index 00fb35e5..43a31740 100644 --- a/lib.h +++ b/lib.h @@ -630,7 +630,7 @@ val orv(val funlist); val iff(val condfun, val thenfun, val elsefun); val iffi(val condfun, val thenfun, val elsefun); val swap_12_21(val fun); -val vector(val length); +val vector(val length, val initval); val vectorp(val vec); val vec_set_length(val vec, val fill); val vecref(val vec, val ind); -- cgit v1.2.3