dhall-nix-lib/Number/toNatural.dhall

6 lines
171 B
Text

λ(nix : ../NixPrelude.dhall) →
let Number = ./Type.dhall
let Number/toInteger = ./toInteger.dhall nix
in λ(a : Number) → Integer/clamp (Number/toInteger a)