Idris2/tests/idris2/reg/reg009/Case.idr

7 lines
139 B
Idris
Raw Normal View History

import Decidable.Equality
0 foo : (i, j : Nat) -> Bool
foo i j = case decEq i j of
Yes pf => True
No pf => False