doc-src/Codegen/Thy/examples/lookup.ML
author wenzelm
Sat, 24 Oct 2009 17:49:44 +0200
changeset 33088 757d7787b10c
parent 30226 2f4684e2ea95
permissions -rw-r--r--
markup for formal entities, with "def" or "ref" occurrences;

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