doc-src/IsarAdvanced/Codegen/Thy/examples/lookup.ML
author berghofe
Wed, 07 Feb 2007 17:30:53 +0100
changeset 22264 6a65e9b2ae05
parent 21994 dfa5133dbe73
permissions -rw-r--r--
Theorems for converting between wf and wfP are now declared as hints.

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