Mercurial > hg > Papers > 2018 > nozomi-master
view paper/src/AgdaElem.agda @ 71:b0cfef1cd89f
Add sample source
author | atton <atton@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 06 Feb 2017 10:15:16 +0900 |
parents | fb42478e4c96 |
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