Mercurial > hg > Papers > 2018 > ryokka-thesis
view final_pre/src/AgdaElem.agda @ 7:28f900230c26
add final_pre
author | ryokka |
---|---|
date | Mon, 19 Feb 2018 23:32:24 +0900 |
parents | |
children |
line wrap: on
line source
elem : {A : Set} {{eqA : Eq A}} → A → List A → Bool elem {{eqA}} x (y ∷ xs) = (Eq._==_ eqA x y) || (elem {{eqA}} x xs) elem x [] = false