File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -5,12 +5,12 @@ function toInt(t) {
5
5
return Number ( t ) | 0 ;
6
6
}
7
7
8
- function exp ( x , y ) {
9
- return ( x ** y ) ;
8
+ function lnot ( x ) {
9
+ return x ^ - 1n ;
10
10
}
11
11
12
12
export {
13
13
toInt ,
14
- exp ,
14
+ lnot ,
15
15
}
16
16
/* No side effect */
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import * as Core__Int from "../src/Core__Int.mjs";
4
4
import * as IntlTests from "./intl/IntlTests.mjs" ;
5
5
import * as Core__Dict from "../src/Core__Dict.mjs" ;
6
6
import * as Core__JSON from "../src/Core__JSON.mjs" ;
7
+ import * as Caml_bigint from "rescript/lib/es6/caml_bigint.js" ;
7
8
import * as Caml_option from "rescript/lib/es6/caml_option.js" ;
8
9
import * as Core__Array from "../src/Core__Array.mjs" ;
9
10
import * as Core__Float from "../src/Core__Float.mjs" ;
@@ -143,7 +144,7 @@ console.info("BigInt");
143
144
144
145
console . info ( "---" ) ;
145
146
146
- console . log ( BigInt ( 1 ) / BigInt ( 12.0 ) ) ;
147
+ console . log ( Caml_bigint . div ( BigInt ( 1 ) , BigInt ( 12.0 ) ) ) ;
147
148
148
149
console . info ( "" ) ;
149
150
You can’t perform that action at this time.
0 commit comments