doc-src/Codegen/Thy/examples/arbitrary.ML
author bulwahn
Mon, 11 May 2009 09:18:42 +0200
changeset 31106 9a1178204dc0
parent 30226 2f4684e2ea95
permissions -rw-r--r--
Added pred_code command

structure Codegen = 
struct

val arbitrary_option : 'a option = NONE;

fun dummy_option [] = arbitrary_option
  | dummy_option (x :: xs) = SOME x;

end; (*struct Codegen*)