annotate paper/src/AgdaElem.agda @ 116:ed6719c301fc

Update slide
author atton <atton@cr.ie.u-ryukyu.ac.jp>
date Mon, 13 Feb 2017 17:31:45 +0900
parents fb42478e4c96
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
52
fb42478e4c96 Writing agda description
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 elem : {A : Set} {{eqA : Eq A}} → A → List A → Bool
fb42478e4c96 Writing agda description
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
2 elem {{eqA}} x (y ∷ xs) = (Eq._==_ eqA x y) || (elem {{eqA}} x xs)
fb42478e4c96 Writing agda description
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 elem x [] = false