doc-src/Codegen/Thy/examples/lookup.ML
author haftmann
Thu, 18 Aug 2011 13:25:17 +0200
changeset 44277 bcb696533579
parent 30226 2f4684e2ea95
permissions -rw-r--r--
moved fundamental lemma fun_eq_iff to theory HOL; tuned whitespace

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