dhall-nix-lib/Function/const.dhall

8 lines
205 B
Text
Raw Normal View History

2022-09-08 18:49:47 +00:00
let const
: ∀(A : Type) → A → ∀(B : Type) → B → A
= λ(A : Type) → λ(a : A) → λ(B : Type) → λ(_ : B) → a
let example1 = assert : const Natural 5 Natural 10 ≡ 5
in const