unofficial mirror of 
 help / color / mirror / Atom feed
* [PATCH] vectors: add (vector-last) support
@ 2020-12-21  9:44 Aleix Conchillo Flaqué
  0 siblings, 0 replies; only message in thread
From: Aleix Conchillo Flaqué @ 2020-12-21  9:44 UTC (permalink / raw)
  To: guile-devel

[-- Attachment #1: Type: text/plain, Size: 233 bytes --]


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.



[-- Attachment #2: 0001-vectors-add-vector-last-support.patch --]
[-- Type: application/octet-stream, Size: 5142 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-12-21  9:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-21  9:44 [PATCH] vectors: add (vector-last) support Aleix Conchillo Flaqué

unofficial mirror of 

This inbox may be cloned and mirrored by anyone:

	git clone --mirror guile-devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guile-devel guile-devel/ \
	public-inbox-index guile-devel

Example config snippet for mirrors.
Newsgroups are available over NNTP:

AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git