(f: (a: A) => A)
| 1144 | this.replace = replace |
| 1145 | } |
| 1146 | override modify(f: (a: A) => A): (s: S) => S { |
| 1147 | return (s) => this.replace(f(this.get(s)), s) |
| 1148 | } |
| 1149 | } |
| 1150 | |
| 1151 | class PrismImpl<S, A> extends OptionalImpl<S, A> implements Prism<S, A> { |