doc-src/Codegen/Thy/examples/arbitrary.ML
author haftmann
Thu, 29 Oct 2009 11:41:37 +0100
changeset 33319 74f0dcc0b5fb
parent 30226 2f4684e2ea95
permissions -rw-r--r--
moved algebraic classes to Ring_and_Field

structure Codegen = 
struct

val arbitrary_option : 'a option = NONE;

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

end; (*struct Codegen*)