Weaves | 771
that the desired length, it is repeated out to the right length. If the left operand is shorter, it is merely
trimmed.
Example Expansion
123 -> 8 12312312
123456787654321 -> 10 1234567876
CONCAT
Operator usage Short form
<pattern> concat <pattern> ,
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.
Example Expansion
(1-4|),(4-1|) 1234321
1-8,(1-8 [] 2) 123456781122334455667788
INTERLEAVE
Operator usage Short form
<pattern> interleave <pattern> int, ~
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.
Hello, im noob :)