diff --git a/CHANGELOG.md b/CHANGELOG.md index fc125acd..4c5c280a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## Next version +### API changes + +- Remove `Math.Int.pow`. https://github.com/rescript-association/rescript-core/pull/81 + ## 0.5.0 ### API changes diff --git a/src/Core__Math.res b/src/Core__Math.res index a468332b..80fb1347 100644 --- a/src/Core__Math.res +++ b/src/Core__Math.res @@ -17,7 +17,6 @@ module Int = { @variadic @val external minMany: array => int = "Math.min" @val external max: (int, int) => int = "Math.max" @variadic @val external maxMany: array => int = "Math.max" - @val external pow: (int, ~exp: int) => int = "Math.pow" @val external sign: int => int = "Math.sign" } diff --git a/src/Core__Math.resi b/src/Core__Math.resi index eaecfb46..a59ca18a 100644 --- a/src/Core__Math.resi +++ b/src/Core__Math.resi @@ -247,20 +247,6 @@ module Int: { @val external maxMany: array => int = "Math.max" - /** - `pow(a, ~exp)` raises the given base `a` to the given exponent `exp`. - See [`Math.pow`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/pow) on MDN. - - ## Examples - - ```rescript - Math.Int.pow(2, ~exp=4) // 16 - Math.Int.pow(3, ~exp=4) // 81 - ``` - */ - @val - external pow: (int, ~exp: int) => int = "Math.pow" - /** `sign(v)` returns the sign of its integer argument: `-1` if negative, `0` if zero, `1` if positive.