Mercurial > hg > Papers > 2021 > soto-thesis
view prepaper/src/AgdaElem.agda @ 14:a63df15c9afc default tip
DONE
author | soto <soto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 15 Feb 2021 23:36:39 +0900 |
parents | 3dba680da508 |
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