Mercurial > hg > Papers > 2018 > ryokka-thesis
view final_main/src/AgdaElem.agda @ 17:73baedb5cdfb default tip
fix
author | kono |
---|---|
date | Thu, 22 Feb 2018 12:04:21 +0900 |
parents | 93d26c4576d3 |
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