dhall-nix-lib/Any/subtract.dhall

12 lines
309 B
Text

λ(nix : ../NixPrelude.dhall) →
let Any = ./Type.dhall
let Number = ../Number/Type.dhall
let Any/toTypeUnchecked = ./toTypeUnchecked.dhall nix
in λ(e1 : Any) →
λ(e2 : Any) →
nix.builtins.sub
(Any/toTypeUnchecked Number e1)
(Any/toTypeUnchecked Number e2)