Add Store

This commit is contained in:
Jon Staab
2024-03-26 13:31:13 -07:00
parent bc21228f04
commit 110ed26efe
8 changed files with 356 additions and 4 deletions
+2
View File
@@ -55,6 +55,8 @@ export class Fluent<T> {
forEach = (f: (t: T, i: number) => void) => this.xs.forEach(f)
join = (s: string) => this.valueOf().join(s)
set = (i: number, x: T) => this.clone([...this.xs.slice(0, i), x, ...this.xs.slice(i + 1)])
concat = (xs: T[]) => this.clone(this.xs.concat(xs))