
Weaves | 775
Operator usage Short form
<pattern> palindrome pal, |
This operator takes only one operand, the left operand. That operand can be a pattern of any length. The
resultant expansion is the left operand concatenated with itself backwards.
However, the center element is not repeated, and the last element of the result is dropped automatically.
This is essential when the palindromed sequence is repeated and helps to remove flaws from a weaving
draft.
A palindrome word is the same, spelled backwards or forwards, like “madam.”
Example Expansion
1-8| 12345678765432
1223334444555| 122333444455555444433322
PERMUTE
Operator usage Short form
<pattern> permute <permutation> perm
The left operand is a pattern of any length. The right operand is a permutation vector.
The left operand is extended to a length that is an integer multiple of the right operand's length.
Then the left operand is permuted in chunks of the right operand's length. The organization of the
permutation pattern is used to reorganize the elements in each chunk of the pattern.
For example, a permutation of 312 puts “the third element first, the first element second and the second
element third.”
Example Expansion
123456787654321 permute 312 312645778465132
1-8 perm 1324 13245768
Hello, im noob :)