(s: string)
| 24 | it("composeK", () => { |
| 25 | const composeK = _.composeK(OptionInstances.FlatMap) |
| 26 | const f = (s: string): O.Option<number> => s.length > 0 ? O.some(s.length) : O.none() |
| 27 | const g = (n: number): O.Option<number> => n > 1 ? O.some(n) : O.none() |
| 28 | const h = pipe(f, composeK(g)) |
| 29 | U.deepStrictEqual(h(""), O.none()) |
no outgoing calls
no test coverage detected