avoidsPattern(w, pattern)
Pattern avoidance is more easily understood through an example. A permutation $p$ is $2143$-avoiding if there do not exist indices $i < j < k < l$ such that $w_j < w_i < w_l < w_k$.
|
|
The object avoidsPattern is a method function.