From 93d0ba9844dbba55658ce9c0d8570e294bd096b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Mon, 10 Apr 2023 22:02:44 +0200 Subject: Add init+last. --- doc/ref/guile/util.texi | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doc/ref') diff --git a/doc/ref/guile/util.texi b/doc/ref/guile/util.texi index 32e7543f..f60e2059 100644 --- a/doc/ref/guile/util.texi +++ b/doc/ref/guile/util.texi @@ -113,6 +113,11 @@ See @var{find-extreme} @end lisp @end defun +@defun init+last list +Returns two values: everything except the last element of @var{list}, +and the last element of @var{list}. +@end defun + @defun take-to lst n Equivalent to @var{take}, but return everything (instead of crash) if n > (length lst). -- cgit v1.2.3