StringJoin

"s1"<>"s2"<>, StringJoin["s1","s2",], or StringJoin[{"s1","s2",}]

yields a string consisting of a concatenation of the s_(i).

Details

Background & Context

Examples

open allclose all

Basic Examples  (2)

Join strings:

Use InputForm to show string quotes:

All lists are ignored:

Scope  (4)

StringJoin works with special characters:

Join strings, with a newline in between:

StringJoin preserves formatting information embedded in strings:

Join biomolecular sequences:

Applications  (4)

Iteratively join a string to its reverse:

Find trigrams in a string:

Join a list of words, after inserting spaces in between:

Create a Champernowne number:

Properties & Relations  (1)

StringJoin acts as a kind of inverse to Characters:

Possible Issues  (1)

StringJoin works only with explicit strings:

Use ToString to convert to a string:

Wolfram Research (1988), StringJoin, Wolfram Language function, https://reference.wolfram.com/language/ref/StringJoin.html (updated 2020).

Text

Wolfram Research (1988), StringJoin, Wolfram Language function, https://reference.wolfram.com/language/ref/StringJoin.html (updated 2020).

CMS

Wolfram Language. 1988. "StringJoin." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2020. https://reference.wolfram.com/language/ref/StringJoin.html.

APA

Wolfram Language. (1988). StringJoin. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/StringJoin.html

BibTeX

@misc{reference.wolfram_2023_stringjoin, author="Wolfram Research", title="{StringJoin}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/StringJoin.html}", note=[Accessed: 19-March-2024 ]}

BibLaTeX

@online{reference.wolfram_2023_stringjoin, organization={Wolfram Research}, title={StringJoin}, year={2020}, url={https://reference.wolfram.com/language/ref/StringJoin.html}, note=[Accessed: 19-March-2024 ]}