doc-src/Codegen/Thy/examples/lookup.ML
author immler@in.tum.de
Sat, 14 Mar 2009 15:45:45 +0100
changeset 30535 db8b10fd51a4
parent 30226 2f4684e2ea95
permissions -rw-r--r--
show certain errors to the user

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