
740 Corel Painter X3 Getting Started Guide
CONCAT
The left and right operands are both patterns of any length. The result is the left
operand concatenated with the right operand. Note that when a pattern is spelled out
(e.g. 1234), the concat operation is implicit between each of its members (i.e. 1234 is
equivalent to 1,2,3,4). The concat operator is used only when needed — for example,
to separate parenthetical operands.
INTERLEAVE
The left and right operands are both patterns of any length. If either operand is shorter
than the other, it is extended (via repeating) to exactly the length of the other operand.
Then, the operands are interleaved. Interleaving alternates the elements of the left
operand with the elements of the right (like lacing your fingers together). The
expansion contains the first element of the left, the first element of the right, the second
element of the left, the second element of the right, and so on.
Example Expansion
123 -> 8 12312312
123456787654321 -> 10 1234567876
Operator usage Short form
<pattern> concat <pattern> ,
Example Expansion
(1-4|),(4-1|) 1234321
1-8,(1-8 [] 2) 123456781122334455667788
Operator usage Short form
<pattern> interleave <pattern> int, ~
Example Expansion
123 interleave 76 172637
12345678 ~ 4321 1423324154637281
Comentarios a estos manuales