doc-src/Codegen/Thy/examples/lookup.ML
author bulwahn
Thu, 09 Jun 2011 08:32:14 +0200
changeset 43309 3bc28ce6986c
parent 30226 2f4684e2ea95
permissions -rw-r--r--
moving Quickcheck_Narrowing from Library to base directory

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