dhall-nix-lib/Any/negate.dhall

8 lines
199 B
Text

λ(nix : ../NixPrelude.dhall) →
let Any = ./Type.dhall
let Any/toAny = ./toAny.dhall nix
let Any/subtract = ./subtract.dhall nix
in λ(e : Any) → Any/subtract (Any/toAny Natural 0) e