annotate record.ur @ 10:763eb2f2aa5a

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