(s: string)
| 274 | it("match", () => { |
| 275 | const onNone = () => "none" |
| 276 | const onSome = (s: string) => `some${s.length}` |
| 277 | const match = Option.match({ onNone, onSome }) |
| 278 | strictEqual(match(Option.none()), "none") |
| 279 | strictEqual(match(Option.some("abc")), "some3") |