dhall-nix-lib/Any/subtract.dhall

13 lines
309 B
Text
Raw Normal View History

2022-08-31 13:18:49 +00:00
λ(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)