From 907931e62d154564089a2e88145d56afa68231fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Thu, 17 Mar 2022 20:28:48 +0100 Subject: Add uniq family of procedures. --- doc/ref/guile/util.texi | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'doc/ref') diff --git a/doc/ref/guile/util.texi b/doc/ref/guile/util.texi index b5cce99a..f7cfe438 100644 --- a/doc/ref/guile/util.texi +++ b/doc/ref/guile/util.texi @@ -322,6 +322,18 @@ non-unique keys, returning all mathing records (instead of just the first). @end defun +@defun uniq lst +@defunx univ lst +@defunx unique lst +Sequeeze repeated elements in the input, similar to uniq(1). +Matches the semantics of @code{eq?}, @code{eqv?}, and @code{equal?}. +@end defun + +@defun uniqx = lst +Uniq, but takes a custom comparison procedure. +@end defun + + @defun vector-last v Returns the last element of @var{v}. @end defun -- cgit v1.2.3