doc-src/Codegen/Thy/examples/lookup.ML
author haftmann
Tue, 03 Mar 2009 11:00:51 +0100
changeset 30226 2f4684e2ea95
parent 21994 doc-src/IsarAdvanced/Codegen/Thy/examples/lookup.ML@dfa5133dbe73
permissions -rw-r--r--
more canonical directory structure of manuals

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