Mercurial > hg > Papers > 2020 > ryokka-master
view paper/src/AgdaElem.agda.replaced @ 4:b5fffa8ae875
fix chapter hoare
author | ryokka |
---|---|
date | Wed, 29 Jan 2020 22:36:17 +0900 |
parents | c7acb9211784 |
children |
line wrap: on
line source
elem : {A : Set} {{eqA : Eq A}} @$\rightarrow$@ A @$\rightarrow$@ List A @$\rightarrow$@ Bool elem {{eqA}} x (y @$\text{::}$@ xs) = (Eq._==_ eqA x y) || (elem {{eqA}} x xs) elem x [] = false