doc-src/IsarAdvanced/Codegen/Thy/examples/lookup.ML
author haftmann
Wed, 18 Feb 2009 19:18:33 +0100
changeset 29971 68331b62c873
parent 21994 dfa5133dbe73
permissions -rw-r--r--
fixed signature

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