summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
Diffstat (limited to 'txr.1')
-rw-r--r--txr.114
1 files changed, 13 insertions, 1 deletions
diff --git a/txr.1 b/txr.1
index e524dbce..1cbaff45 100644
--- a/txr.1
+++ b/txr.1
@@ -18436,7 +18436,7 @@ which is interposed between the catenated strings.
.coNP Function @ split-str
.synb
-.mets (split-str < string << sep )
+.mets (split-str < string < sep <> [ keep-between ])
.syne
.desc
The
@@ -18491,6 +18491,18 @@ This operation is nondestructive:
.meta string
is not modified in any way.
+If the optional
+.meta keep-between
+argument is specified and is not
+.codn nil ,
+If an argument is given and is true, then
+.meta split-str
+incorporates the matching separating pieces of
+.meta string
+into the resulting list, such that if the resulting
+list is catenated, a string equivalent to the original
+string will be produced.
+
Note: To split a string into pieces of length one such that an empty string
produces
.code nil