doc-src/Codegen/Thy/examples/lookup.ML
author huffman
Sun, 04 Sep 2011 10:05:52 -0700
changeset 44711 cd8dbfc272df
parent 30226 2f4684e2ea95
permissions -rw-r--r--
remove redundant lemmas expi_add and expi_zero

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