summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-10-05 06:17:31 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-10-05 06:17:31 -0700
commitc17054aa390ce42e867d9ce7b5fd821e0c666d45 (patch)
tree8000cfc275beeb0b2e0c7c4421cc00a1ad79f34a /txr.1
parent75ddca922ba8dcaf696f23f613b1a9f594a1884f (diff)
downloadtxr-c17054aa390ce42e867d9ce7b5fd821e0c666d45.tar.gz
txr-c17054aa390ce42e867d9ce7b5fd821e0c666d45.tar.bz2
txr-c17054aa390ce42e867d9ce7b5fd821e0c666d45.zip
Copy lazy strings without forcing.
* lib.c (copy_lazy_str): New static function. (copy_str): Use copy_lazy_str to copy lazy strings. * txr.1: Documentation added under copy-str.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.112
1 files changed, 12 insertions, 0 deletions
diff --git a/txr.1 b/txr.1
index 309b5d8b..f8d2dd89 100644
--- a/txr.1
+++ b/txr.1
@@ -16133,6 +16133,18 @@ function constructs a new string whose contents are identical
to
.metn string .
+If
+.meta string
+is a lazy string, then a lazy string is constructed with the
+same attributes as
+.metn string .
+The new lazy string has its own copy of the prefix portion of
+.meta string
+which has been forced so far. The unforced list and separator
+string are shared between
+.meta string
+and the newly constructed lazy string.
+
.coNP Function @ upcase-str
.synb
.mets (upcase-str << string )