doc-src/Codegen/Thy/examples/lookup.ML
author huffman
Sat, 20 Aug 2011 10:08:47 -0700
changeset 44346 00dd3c4dabe0
parent 30226 2f4684e2ea95
permissions -rw-r--r--
rename real_squared_diff_one_factored to square_diff_one_factored and move to Rings.thy

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