Lably
Skip to content

Concatenation

Joining of strings in a programming language

  • 11 min read
  • 6 chapters

Related on Lably

Through Computer programming, String (computer science) and Video

Terminology

To concatenate is to join two or more sequential objects together to create a new object, generally without modifying any of the original objects.

To append is to modify a sequential object by adding material at the end. Thus to append a to b is to modify b to be equal to the concatenation of the original value of b and a. Despite this, in some high-level programming languages, especially functional and logical ones, append is the operation for concatenating lists or arrays without modifying the originals.

To prepend is to modify a sequential object by adding material at the beginning. Thus to prepend a to b is to modify b to be equal to the concatenation of a and the original value of b.

Sign in to keep reading

5 more chapters are free with a Lably account.

More in Computing and communication