(n: number)
| 219 | |
| 220 | it("partition", () => { |
| 221 | const f = (n: number) => (n > 2 ? Result.succeed(n + 1) : Result.fail(n - 1)) |
| 222 | deepStrictEqual(Record.partition({}, f), [{}, {}]) |
| 223 | deepStrictEqual(Record.partition({ a: 1, b: 3, [symA]: null }, f), [{ a: 0 }, { b: 4 }]) |
| 224 | }) |