Merge pull request #9227 from yallop/bool-identity

Make Bool.to_int primitive.
master
Armaël Guéneau 2020-01-15 13:27:29 +01:00 committed by GitHub
commit 390d4e3ce5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ external ( && ) : bool -> bool -> bool = "%sequand"
external ( || ) : bool -> bool -> bool = "%sequor"
let equal : bool -> bool -> bool = ( = )
let compare : bool -> bool -> int = Stdlib.compare
let to_int = function false -> 0 | true -> 1
external to_int : bool -> int = "%identity"
let to_float = function false -> 0. | true -> 1.
(*