dhall-nix-lib/Number/fromNatural.dhall

9 lines
242 B
Text
Raw Normal View History

2022-08-31 17:51:53 +00:00
λ(nix : ../NixPrelude.dhall) →
let Number = ./Type.dhall
let Any/toAny = ../Any/toAny.dhall nix
let Any/toTypeUnchecked = ../Any/toTypeUnchecked.dhall nix
in λ(n : Natural) → Any/toTypeUnchecked Number (Any/toAny Natural n)