actually apply the function in every
This commit is contained in:
parent
e12bcea613
commit
d3f4dcacff
3 changed files with 10 additions and 10 deletions
|
|
@ -338,7 +338,7 @@ class Pattern {
|
|||
}
|
||||
every(n, func) {
|
||||
var pats = Array(n - 1).fill(this);
|
||||
pats.unshift(this);
|
||||
pats.unshift(func(this));
|
||||
return slowcat(...pats);
|
||||
}
|
||||
append(other) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue