Chromium Code Reviews| Index: sdk/lib/core/int.dart |
| diff --git a/sdk/lib/core/int.dart b/sdk/lib/core/int.dart |
| index 1d29a728f0399e2c16059fa1bb0ec26b69d29c8b..f12c97c5edb158fdcc63f2a46f4e93780c5c7ead 100644 |
| --- a/sdk/lib/core/int.dart |
| +++ b/sdk/lib/core/int.dart |
| @@ -111,6 +111,14 @@ abstract class int extends num { |
| */ |
| int modPow(int exponent, int modulus); |
| + /** |
| + * Returns the modular multiplicative inverse of this integer |
| + * modulo [modulus]. |
| + * |
| + * The [modulus] must be positive. |
| + */ |
| + int modInverse(int modulus); |
|
srdjan
2015/06/10 17:46:06
You probably also need to add it to sdk/lib/_inter
regis
2015/06/10 20:25:56
Thank for the pointer! Done.
|
| + |
| /** Returns true if and only if this integer is even. */ |
| bool get isEven; |