From fa79f8aae1d510f699cb8673dee9a2b95ac94cd3 Mon Sep 17 00:00:00 2001 From: Pedro Castro Date: Wed, 1 Mar 2023 21:23:33 -0300 Subject: [PATCH 1/3] remove Math.Int.pow --- CHANGELOG.md | 1 + src/Core__Math.res | 1 - src/Core__Math.resi | 13 ------------- test/TestSuite.mjs | 2 +- 4 files changed, 2 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1febff2d..1b4881bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ - Remove `reduceReverse` in favor of `reduceRight`. https://github.com/rescript-association/rescript-core/pull/49 - Fixed type signatures of `reduce` and `reduceWithIndex`. https://github.com/rescript-association/rescript-core/pull/49 - Add `panic`/`Error.panic`. https://github.com/rescript-association/rescript-core/pull/72 +- Remove `Math.Int.pow`. ### Documentation diff --git a/src/Core__Math.res b/src/Core__Math.res index c9b7497e..d8b8f3c5 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 00cd21b6..afe49179 100644 --- a/src/Core__Math.resi +++ b/src/Core__Math.resi @@ -247,19 +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 diff --git a/test/TestSuite.mjs b/test/TestSuite.mjs index 64ebfbc1..f3e3bfee 100644 --- a/test/TestSuite.mjs +++ b/test/TestSuite.mjs @@ -1,7 +1,7 @@ // Generated by ReScript, PLEASE EDIT WITH CARE -import * as ErrorTests from "./ErrorTests.mjs"; import * as ArrayTests from "./ArrayTests.mjs"; +import * as ErrorTests from "./ErrorTests.mjs"; import * as PromiseTest from "./PromiseTest.mjs"; var TestError = PromiseTest.TestError; From 0c6a2f4a5ada4602fd4c26e1d5d03d1cf7821840 Mon Sep 17 00:00:00 2001 From: Pedro Castro Date: Wed, 1 Mar 2023 21:27:19 -0300 Subject: [PATCH 2/3] fix format --- src/Core__Math.resi | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Core__Math.resi b/src/Core__Math.resi index afe49179..c3e192d5 100644 --- a/src/Core__Math.resi +++ b/src/Core__Math.resi @@ -247,7 +247,6 @@ module Int: { @val external maxMany: array => int = "Math.max" - /** `sign(v)` returns the sign of its integer argument: `-1` if negative, `0` if zero, `1` if positive. From be23a56d12d470c321b98386373380429589fd9a Mon Sep 17 00:00:00 2001 From: Pedro Castro Date: Wed, 1 Mar 2023 21:30:06 -0300 Subject: [PATCH 3/3] update CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1b4881bf..d4871eee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,7 +23,7 @@ - Remove `reduceReverse` in favor of `reduceRight`. https://github.com/rescript-association/rescript-core/pull/49 - Fixed type signatures of `reduce` and `reduceWithIndex`. https://github.com/rescript-association/rescript-core/pull/49 - Add `panic`/`Error.panic`. https://github.com/rescript-association/rescript-core/pull/72 -- Remove `Math.Int.pow`. +- Remove `Math.Int.pow`. https://github.com/rescript-association/rescript-core/pull/81 ### Documentation