annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
3dba680da508 init-test
soto
parents:
diff changeset
1 elem : {A : Set} {{eqA : Eq A}} → A → List A → Bool
3dba680da508 init-test
soto
parents:
diff changeset
2 elem {{eqA}} x (y ∷ xs) = (Eq._==_ eqA x y) || (elem {{eqA}} x xs)
3dba680da508 init-test
soto
parents:
diff changeset
3 elem x [] = false