Compare commits

...

2 Commits

Author SHA1 Message Date
Felix Roos 5e89d7ece9 use set 2022-04-22 13:47:29 +02:00
Felix Roos 967a9bb4a4 overload every 2022-04-22 13:47:16 +02:00
+4
View File
@@ -591,6 +591,10 @@ export class Pattern {
}
every(n, func) {
if (func instanceof Pattern) {
const p = func;
func = (x) => x.set(p);
}
const pat = this;
const pats = Array(n - 1).fill(pat);
pats.unshift(func(pat));