guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Aleix Conchillo Flaqué
Subject: [PATCH] vectors: add (vector-last) support
Date: Mon, 21 Dec 2020 01:44:40 -0800

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

Attachment: 0001-vectors-add-vector-last-support.patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]