annotate final_main/src/AgdaElem.agda @ 17:73baedb5cdfb default tip

fix
author kono
date Thu, 22 Feb 2018 12:04:21 +0900
parents 93d26c4576d3
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
93d26c4576d3 add picture
ryokka
parents:
diff changeset
1 elem : {A : Set} {{eqA : Eq A}} → A → List A → Bool
93d26c4576d3 add picture
ryokka
parents:
diff changeset
2 elem {{eqA}} x (y ∷ xs) = (Eq._==_ eqA x y) || (elem {{eqA}} x xs)
93d26c4576d3 add picture
ryokka
parents:
diff changeset
3 elem x [] = false