Concatenate pairwise¤
Concatenates the values of multiple inputs pairwise.
Examples¤
Notation: List of values are represented via square brackets. Example: [first, second] represents a list of two values “first” and “second”.
Values of two inputs are concatenated pairwise:
-
Input values:
[a, b, c][1, 2, 3]
-
Returns:
[a1, b2, c3]
More than two inputs are supported as well:
-
Input values:
[a, b, c][1, 2, 3][x, y, z]
-
Returns:
[a1x, b2y, c3z]
If one of the inputs has more values than the other, its remaining values are ignored:
-
Input values:
[a, b, c][1, 2]
-
Returns:
[a1, b2]
Empty input leads to empty output:
- Returns:
[]
A single input is just forwarded:
-
Input values:
[a]
-
Returns:
[a]
Parameter¤
Glue¤
Separator to be inserted between two concatenated strings. The text can contain escaped characters \n, \t and \ that are replaced by a newline, tab or backslash respectively.
- ID:
glue - Datatype:
string - Default Value:
None
Advanced Parameter¤
None
Related Plugins¤
- concat — Concatenate pairwise matches values by position and produces one combined string per position. Concatenate does not align by position — it produces every combination of values across inputs, so two inputs with three values each yield nine strings, not three.
- zip — When inputs have unequal lengths, Concatenate pairwise drops the extra values from the longer input. Zip solves the same alignment problem for exactly two inputs but keeps them by substituting a configurable placeholder for each missing value.