diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-09-07 07:21:53 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-09-07 07:21:53 -0700 |
commit | b8ba39ca691b71d2d6f66959c0787693c563dc4f (patch) | |
tree | ba39aef9d5f33b51cefae00333af025614a19ef1 /txr.1 | |
parent | 98ed59198be3104e82c00734e01f4a1022440d1b (diff) | |
download | txr-b8ba39ca691b71d2d6f66959c0787693c563dc4f.tar.gz txr-b8ba39ca691b71d2d6f66959c0787693c563dc4f.tar.bz2 txr-b8ba39ca691b71d2d6f66959c0787693c563dc4f.zip |
string-finish: new function.
* eval.c (eval_init): Register string-finish intrinsic.
* lib.c (string_finish): New function.
* lib.h (string_finish): Declared.
* txr.1: Documented.
* stdlib/doc-syms.tl: Updated.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -24339,6 +24339,26 @@ allocation intended to improves the performance of subsequent .code string-extend calls. +.coNP Function @ string-finish +.synb +.mets (string-finish << string ) +.syne +.desc +The +.code string-finish +function removes excess allocation from +.meta string +that may have been produced by previous calls to +.codn string-extend . + +Note: if the most recent call to string +.code string-extend +specified a true value for the +.meta final +parameter, then calling +.code string-finish +is unnecessary and does nothing. + .coNP Function @ stringp .synb .mets (stringp << obj ) |