aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-04-10 22:02:44 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2023-04-10 23:45:29 +0200
commit93d0ba9844dbba55658ce9c0d8570e294bd096b0 (patch)
tree4f4a24ebc152a2c044a6b70be7a3fc1d3cd5d301 /doc
parentAdd number of missing (hnh util) tests. (diff)
downloadcalp-93d0ba9844dbba55658ce9c0d8570e294bd096b0.tar.gz
calp-93d0ba9844dbba55658ce9c0d8570e294bd096b0.tar.xz
Add init+last.
Diffstat (limited to 'doc')
-rw-r--r--doc/ref/guile/util.texi5
1 files changed, 5 insertions, 0 deletions
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).