doc-src/IsarAdvanced/Codegen/Thy/examples/arbitrary.ML
author wenzelm
Fri, 28 Mar 2008 19:43:54 +0100
changeset 26462 dac4e2bce00d
parent 23850 f1434532a562
permissions -rw-r--r--
avoid rebinding of existing facts;

structure Codegen = 
struct

val arbitrary_option : 'a option = NONE;

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

end; (*struct Codegen*)