doc-src/IsarAdvanced/Codegen/Thy/examples/lookup.ML
author urbanc
Fri, 14 Sep 2007 13:32:07 +0200
changeset 24572 7be5353ec4bd
parent 21994 dfa5133dbe73
permissions -rw-r--r--
reverted back to the old version of the equivariance lemma for ALL

structure ROOT = 
struct

structure Codegen = 
struct

fun lookup ((k, v) :: xs) l =
  (if ((k : string) = l) then SOME v else lookup xs l)
  | lookup [] l = NONE;

end; (*struct Codegen*)

end; (*struct ROOT*)