ansible/dhall/Prelude/Natural/toInteger.dhall
2024-11-26 00:55:56 -05:00

10 lines
229 B
Text

--| Convert a `Natural` number to the corresponding `Integer`
let toInteger
: Natural → Integer
= Natural/toInteger
let example0 = assert : toInteger 3 ≡ +3
let example1 = assert : toInteger 0 ≡ +0
in toInteger