doc-src/Codegen/Thy/examples/lookup.ML
author huffman
Tue, 23 Mar 2010 10:07:39 -0700
changeset 35933 f135ebcc835c
parent 30226 2f4684e2ea95
permissions -rw-r--r--
remove continuous let-binding function CLet; add cont2cont rule ordinary Let

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