#elisp
Function:
concat &rest sequences
This function returns a new string consisting of the characters in the
arguments passed to it (along with their text properties, if any). The
arguments may be strings, lists of numbers, or vectors of numbers; they
are not themselves changed. If concat
receives no arguments, it
returns an empty string.
(concat "abc" "-def") ⇒ "abc-def"
(concat "abc" (list 120 121) [122]) ⇒ "abcxyz"
;; nil
is an empty sequence. (concat "abc" nil "-def") ⇒ "abc-def"
(concat "The " "quick brown " "fox.") ⇒ "The quick brown fox."
(concat) ⇒ ""
This function always constructs a new string that is not eq
to
any existing string, except when the result is the empty string (to
save space, Emacs makes only one empty multibyte string).
If you want to change selection, open document below and click on "Move attachment"
GNU Emacs Lisp Reference Manual: Creating Strings like substring but discards all text properties from
the value. Also, start may be omitted or nil , which is
equivalent to 0. Thus, (substring-no-properties string ) returns a copy of string , with all text
properties removed.
<span>Function: concat &rest sequences
This function returns a new string consisting of the characters in the
arguments passed to it (along with their text properties, if any). The
arguments may be strings, lists of numbers, or vectors of numbers; they
are not themselves changed. If concat receives no arguments, it
returns an empty string.
(concat "abc" "-def")
⇒ "abc-def"
(concat "abc" (list 120 121) [122])
⇒ "abcxyz"
;; nil is an empty sequence.
(concat "abc" nil "-def")
⇒ "abc-def"
(concat "The " "quick brown " "fox.")
⇒ "The quick brown fox."
(concat)
⇒ ""
This function always constructs a new string that is not eq to
any existing string, except when the result is the empty string (to
save space, Emacs makes only one empty multibyte string).
For information about other concatenation functions, see the
description of mapconcat in Mapping Functions,
vconcat in Vector Functions, and append in Building Lists. For concaten Summary
status | not read | | reprioritisations | |
---|
last reprioritisation on | | | suggested re-reading day | |
---|
started reading on | | | finished reading on | |
---|
Details