doc-src/Codegen/Thy/examples/lookup.ML
author ballarin
Tue, 29 Sep 2009 22:15:54 +0200
changeset 32804 ca430e6aee1c
parent 30226 2f4684e2ea95
permissions -rw-r--r--
Propagation of mixins for interpretation; reactivated diagnostic command print_interps.

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