Skip to content
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