Concatenation
Concatenation is the operation of joining ordered sequences end to end to form a single sequence.
Fabulous Adventures in Data Structures and Algorithms
Concatenation is the operation of joining sequences end to end into a single sequence.
- How it is used
- Joins immutable sequences while comparing immediate copying, deferred construction, and recursive structural joins.
- How deep it goes
- Works through C# stack, Hughes-list, and deque implementations with complexity analysis; does not treat concatenation as one universally cheap operation.
- Examples
- Uses stack reversal, composed delegates, mini-deque repacking, and StringBuilder-based string construction.
- What you can do after
- Evaluate/understand when a sequence join copies items, defers work, or completes in logarithmic worst-case time.
Read how Fabulous Adventures in Data Structures and Algorithms explains concatenation →
Get Programming: Learn to code with Python
- How it is used
- Combines string fragments for assembled text and generated names, and appends words to tuples in a word-processing program.
- How deep it goes
- Defines string concatenation with +, explains order and new-string results, and demonstrates tuple concatenation in code.
- Examples
- Uses report sections, short string expressions, mashed-up names, and valid-word tuples.
- What you can do after
- Apply concatenation with + to assemble strings or extend tuples in small programs.
Read how Get Programming: Learn to code with Python explains concatenation →
Inside Deep Learning: Math, Algorithms, Models
The operation of joining tensors along a chosen axis, requiring the other axes to have matching sizes.
- How it is used
- Uses concatenation to join features in skip connections, U-Net blocks, and conditional GAN latent representations.
- How deep it goes
- Explains axis compatibility, resulting shapes, and PyTorch usage, but stops short of implementation internals beyond torch.cat.
- Examples
- Demonstrates feature vectors, convolutional feature maps, U-Net paths, and conditional GAN latent vectors.
- What you can do after
- Apply it via PyTorch’s torch.cat while preserving matching non-concatenated dimensions.
Read how Inside Deep Learning: Math, Algorithms, Models explains concatenation →
100 Java Mistakes and How to Avoid Them
- How it is used
- Prevents Java expression bugs caused by mixing string concatenation with arithmetic, conditionals, method calls, and character literals.
- How deep it goes
- Traces precedence and left-to-right evaluation through focused failures, then stops at prevention and static-analysis guidance.
- Examples
- Uses index labels, nullable values, list capacity, HTML templates, replacement calls, and diagnostic messages.
- What you can do after
- Diagnose/debug concatenation bugs and prevent them with parentheses, intermediate variables, formatting, text blocks, and static analysis.
Read how 100 Java Mistakes and How to Avoid Them explains concatenation →
The Quick Python Book, Fourth Edition
- How it is used
- Combines Python strings and frames join as the more efficient choice for assembling many pieces.
- How deep it goes
- Explains + and its repeated new-string cost, then contrasts join without descending into lower-level implementation details.
- Examples
- Demonstrates joining “Hello ” and “World” and replacing newline concatenation in a text-file cleaning task.
- What you can do after
- Apply + for simple string combinations and use join to assemble many strings efficiently.
Read how The Quick Python Book, Fourth Edition explains concatenation →
Python How-To
String joining is the operation of combining multiple strings into one string with an optional separator.
- How it is used
- Combines a few string fragments when producing practical textual output.
- How deep it goes
- Explains operator-based joining and contrasts it with f-strings and join, without descending into implementation internals.
- Examples
- Uses comma-separated fruit names and numbered prime output as concrete joining examples.
- What you can do after
- Apply concatenation to construct readable output from a small number of string values.
Clojure: The Essential Reference
concat is a Clojure function that returns a lazy sequence containing the elements of two or more sequential collections in succession.
- How it is used
- Combines sequential sources into one uniform, consumable sequence.
- How deep it goes
- Defines arities, contracts, exceptions, output, laziness, and implementation contrast with lazy-cat.
- Examples
- Uses mixed collection aggregation, traced realization, lazy-cat timing, formatted text, recursive batches, and Fibonacci numbers.
- What you can do after
- Apply it to combine fixed or runtime-known sequential collections while preserving lazy consumption.
Read how Clojure: The Essential Reference explains concatenation →
100 Go Mistakes and How to Avoid Them
String concatenation is the operation of joining multiple strings into one string value.
- How it is used
- Frames concatenation as a performance decision when joining multiple strings, especially inside loops.
- How deep it goes
- Explains immutability, repeated allocation, Builder buffering, preallocation, interface errors, and concurrency limits.
- Examples
- Uses loop-based concat functions, Builder variants, Grow preallocation, and comparative benchmark results.
- What you can do after
- Build it from scratch with strings.Builder, optionally calling Grow when the resulting byte length is known.
Read how 100 Go Mistakes and How to Avoid Them explains concatenation →
Tiny Python Projects: Learn coding and testing with puzzles and games
- How it is used
- Builds small Python messages by combining fixed text with variables and generated words.
- How deep it goes
- Defines string concatenation and demonstrates +, str.format(), f-strings, and str.join(), stopping short of non-string sequences.
- Examples
- Uses a narwhal phrase, an article-sensitive aviso test, generated insults, and random string mutation.
- What you can do after
- Apply it in Python to construct phrases and generated output with +, str.format(), f-strings, or str.join().
Learn SQL in a Month of Lunches
CONCAT is an SQL string function that concatenates multiple values into a single string.
- How it is used
- Combines database columns, literals, variables, and mixed values into readable single-string query results.
- How deep it goes
- Explains comma-separated arguments, mixed-type conversion, and sorting consequences, but does not cover implementation internals.
- Examples
- Demonstrates phrases, title reviews, price-and-title output, and author names using literals, variables, and table columns.
- What you can do after
- Apply it via CONCAT to create readable combined values and preserve numeric ordering with ORDER BY on the original column.
Read how Learn SQL in a Month of Lunches explains concatenation →
Related concepts
- stringuses · A string is a programming-language value representing an ordered sequence of characters or character units as text.
- plus operatorimplemented by · The plus operator is a language-defined operation, commonly performing numeric addition, string concatenation, or collection combination according to operand types.
- parameterized querycontrasts with · A parameterized query is a database statement with placeholders whose values are supplied separately from the statement text as data.
- strings.Builderalternative to · strings.Builder is a Go standard-library type for efficiently accumulating text and producing the resulting string.
- lazy listproduces · A lazy list is an immutable sequence whose elements and continuation are computed incrementally on demand, allowing finite or infinite sequences.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.









