comparison record.ur @ 10:763eb2f2aa5a

Record.mem
author Adam Chlipala <adam@chlipala.net>
date Thu, 03 Feb 2011 09:31:32 -0500
parents
children 67b33be5d56a
comparison
equal deleted inserted replaced
9:8eaaca74a64c 10:763eb2f2aa5a
1 fun mem [a ::: Type] [ns ::: {Unit}] (_ : eq a) (fl : folder ns) (x : a) (r : $(mapU a ns)) : bool =
2 @foldUR [a] [fn _ => bool]
3 (fn [nm ::_] [r ::_] [[nm] ~ r] y acc =>
4 acc || x = y)
5 False fl r