actually apply the function in every

This commit is contained in:
alex 2022-02-07 19:00:43 +00:00
parent e12bcea613
commit d3f4dcacff
3 changed files with 10 additions and 10 deletions

View file

@ -484,7 +484,7 @@ class Pattern {
every(n, func) {
var pats = Array(n-1).fill(this)
pats.unshift(this)
pats.unshift(func(this))
return slowcat(...pats)
}