Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Math.Int.pow #81

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion src/Core__Math.res
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ module Int = {
@variadic @val external minMany: array<int> => int = "Math.min"
@val external max: (int, int) => int = "Math.max"
@variadic @val external maxMany: array<int> => int = "Math.max"
@val external pow: (int, ~exp: int) => int = "Math.pow"
@val external sign: int => int = "Math.sign"
}

Expand Down
14 changes: 0 additions & 14 deletions src/Core__Math.resi
Original file line number Diff line number Diff line change
Expand Up @@ -247,20 +247,6 @@ module Int: {
@val
external maxMany: array<int> => 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.
Expand Down