diff --git a/packages/core/pattern.mjs b/packages/core/pattern.mjs index 1e0fa8674..4c5d724fe 100644 --- a/packages/core/pattern.mjs +++ b/packages/core/pattern.mjs @@ -1569,13 +1569,13 @@ export const outside = register('outside', function (factor, f, pat) { */ export const lastOf = register('lastOf', function (n, func, pat) { const pats = Array(n - 1).fill(pat); - + // It seems we have a pattern, but with a 'compose' function, let's // use that if ('__compose' in func) { func = func.__compose; } - + pats.push(func(pat)); return slowcatPrime(...pats); });