avoidsAllPatterns(perm, patterns)
Given a permutation in one-line notation, and a list of patterns checks if the permutation avoids every pattern.
|
|
|
The object avoidsAllPatterns is a method function.