aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref/strings.texi
diff options
context:
space:
mode:
authorHelmut Eller2026-02-13 09:10:16 +0100
committerHelmut Eller2026-02-13 09:10:16 +0100
commit91c9e9883488d715a30877dfd7641ef4b3c62658 (patch)
treee2c4525147e443f86baf9d0144aeadec082d7564 /doc/lispref/strings.texi
parent9a4a54af9192a6653164364c75721ee814ffb1e8 (diff)
parentf1fe4d46190263e164ccd1e066095d46a156297f (diff)
downloademacs-feature/igc.tar.gz
emacs-feature/igc.zip
Merge branch 'master' into feature/igcfeature/igc
Diffstat (limited to 'doc/lispref/strings.texi')
-rw-r--r--doc/lispref/strings.texi11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/lispref/strings.texi b/doc/lispref/strings.texi
index 44be529d562..d073d3ffe2f 100644
--- a/doc/lispref/strings.texi
+++ b/doc/lispref/strings.texi
@@ -281,6 +281,17 @@ another string, alter a constant string in the program, or even raise
281an error. To obtain a string that you can safely mutate, use 281an error. To obtain a string that you can safely mutate, use
282@code{copy-sequence} on the result. 282@code{copy-sequence} on the result.
283 283
284If you need to create a string made from @var{n} copies of a given
285source string @var{source}, you can use @code{concat} as follows:
286
287@lisp
288 (apply #'concat (make-list @var{n} @var{source}))
289@end lisp
290
291@noindent
292This uses the fact that @code{concat} can take any kind of sequence as
293its arguments.
294
284For information about other concatenation functions, see the 295For information about other concatenation functions, see the
285description of @code{mapconcat} in @ref{Mapping Functions}, 296description of @code{mapconcat} in @ref{Mapping Functions},
286@code{vconcat} in @ref{Vector Functions}, and @code{append} in @ref{Building 297@code{vconcat} in @ref{Vector Functions}, and @code{append} in @ref{Building