doc-src/Codegen/Thy/examples/lookup.ML
author huffman
Mon, 14 May 2012 17:09:11 +0200
changeset 47922 bba52dffab2b
parent 30226 2f4684e2ea95
permissions -rw-r--r--
add transfer rule for set_rel

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