Re: [PATCH] vectors: add (vector-last) support

2021-05-25 Thread Aleix Conchillo Flaqué
ping! On Fri, Feb 12, 2021, 12:03 PM Aleix Conchillo Flaqué wrote: > * libguile/vectors.c: add (vector-last) support. > > * libguile/vectors.h: define scm_vector_last and scm_c_vector_last. > > * doc/ref/api-data.texi (Vector Accessors): add documentation for > (vector-last). > > Signed-off-by:

Re: [PATCH] vectors: add (vector-last) support

2021-02-12 Thread Aleix Conchillo Flaqué
Any interest on this one? On Mon, Dec 21, 2020 at 1:44 AM Aleix Conchillo Flaqué wrote: > Hi, > > Attached is a patch to add support for a new function (vector-last) > that will retrieve the last element of a vector. > > This avoids having to do (vector-ref v (- (vector-length v) 1)). > > Let me

[PATCH] vectors: add (vector-last) support

2021-02-12 Thread Aleix Conchillo Flaqué
* libguile/vectors.c: add (vector-last) support. * libguile/vectors.h: define scm_vector_last and scm_c_vector_last. * doc/ref/api-data.texi (Vector Accessors): add documentation for (vector-last). Signed-off-by: Aleix Conchillo Flaqué --- doc/ref/api-data.texi | 10 ++ libguil

[PATCH] vectors: add (vector-last) support

2020-12-21 Thread Aleix Conchillo Flaqué
Hi, Attached is a patch to add support for a new function (vector-last) that will retrieve the last element of a vector. This avoids having to do (vector-ref v (- (vector-length v) 1)). Let me know what you think. Thanks, Aleix 0001-vectors-add-vector-last-support.patch Description: Binary d