ansible/dhall/Prelude/Natural/toInteger.dhall

11 lines
229 B
Text
Raw Normal View History

2024-11-26 05:55:44 +00:00
--| 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