doc-src/IsarAdvanced/Codegen/Thy/examples/lookup.ML
author nipkow
Wed, 11 Feb 2009 10:51:07 +0100
changeset 29859 33bff35f1335
parent 21994 dfa5133dbe73
permissions -rw-r--r--
Moved Order_Relation into Library and moved some of it into Relation.

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