doc-src/Codegen/Thy/examples/lookup.ML
author boehmes
Fri, 01 Apr 2011 11:54:51 +0200
changeset 42190 b6b5846504cd
parent 30226 2f4684e2ea95
permissions -rw-r--r--
make configuration of (SMT) full monomorphization more flexible: turn boolean argument into a configuration option

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