doc-src/IsarAdvanced/Codegen/Thy/examples/lookup.ML
author haftmann
Fri, 20 Jun 2008 21:00:26 +0200
changeset 27302 8d12ac6a3e1c
parent 21994 dfa5133dbe73
permissions -rw-r--r--
type constructors now with markup

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