doc-src/Codegen/Thy/examples/lookup.ML
author berghofe
Sun, 10 Jan 2010 18:03:20 +0100
changeset 34908 d546e75631bb
parent 30226 2f4684e2ea95
permissions -rw-r--r--
Added setup for simplification of equality constraints in induction rules.

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