doc-src/IsarAdvanced/Codegen/Thy/examples/arbitrary.ML
author wenzelm
Sat, 28 Jun 2008 15:30:46 +0200
changeset 27380 ca505e7b7591
parent 23850 f1434532a562
permissions -rw-r--r--
ML: improved antiquotations;

structure Codegen = 
struct

val arbitrary_option : 'a option = NONE;

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

end; (*struct Codegen*)