doc-src/IsarAdvanced/Codegen/Thy/examples/lookup.ML
author kleing
Wed, 11 Feb 2009 16:03:10 +1100
changeset 29858 c8cee17d7e50
parent 21994 dfa5133dbe73
permissions -rw-r--r--
Autosolve feature for detecting duplicate theorems; patch by Timothy Bourke

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*)