aboutsummaryrefslogtreecommitdiff
path: root/doc/ref/general/util.texi
diff options
context:
space:
mode:
Diffstat (limited to 'doc/ref/general/util.texi')
-rw-r--r--doc/ref/general/util.texi16
1 files changed, 14 insertions, 2 deletions
diff --git a/doc/ref/general/util.texi b/doc/ref/general/util.texi
index a85ff661..1d6a4e7a 100644
--- a/doc/ref/general/util.texi
+++ b/doc/ref/general/util.texi
@@ -127,6 +127,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).
@@ -235,7 +240,9 @@ list, whose indices matches the order of the inputs
@end defun
@defun string-flatten tree
-@c TODO document me
+Given an arbitary tree, do a pre-order traversal, appending all strings.
+
+Non-strings are converted to strings, and also appended.
@end defun
@defun intersperse item list
@@ -243,7 +250,7 @@ Inserts @var{item} between each element in @var{list}.
@end defun
-@defun insert-ordered item collection [<=<]
+@defun insert-ordered item collection [<]
Inserts @var{item} into @var{collection}, such that collection
remainins sorted if it was sorted beforehand.
@end defun
@@ -334,6 +341,11 @@ A variable can also be removed from the environment, by setting its
value to @code{#f}.
@end defmac
+@defmac with-locale1 category locale thunk
+Run @var{thunk} with the locale @var{category} temporarily set to
+@var{locale}.
+@end defmac
+
@defmac catch* thunk (symbol proc) ...
Macro allowing multiple exception types to be caught. Each (symbol
proc) pair expands to a regular @code{catch}, with the leftmost being