(x: Rational)
| 21 | } |
| 22 | |
| 23 | export function isZero(x: Rational): boolean { |
| 24 | // Note '==' to convert bigint to number |
| 25 | return x[0] == 0; |
| 26 | } |
| 27 | |
| 28 | export function isPositive(x: Rational): boolean { |
| 29 | return x[0] > 0; |
no outgoing calls
no test coverage detected