(get: (s: S) => A, replace: (a: A, s: S) => S)
| 175 | * @since 4.0.0 |
| 176 | */ |
| 177 | export function makeLens<S, A>(get: (s: S) => A, replace: (a: A, s: S) => S): Lens<S, A> { |
| 178 | return make(primitiveNode("Lens", get, replace)) |
| 179 | } |
| 180 | |
| 181 | /** |
| 182 | * Focuses on a part `A` of `S` that may not be present (e.g. a union |
no test coverage detected