doc-src/Codegen/Thy/examples/arbitrary.ML
author huffman
Thu, 08 Sep 2011 19:35:23 -0700
changeset 44849 41fddafe20d5
parent 30226 2f4684e2ea95
permissions -rw-r--r--
Library/Saturated.thy: number_semiring class instance

structure Codegen = 
struct

val arbitrary_option : 'a option = NONE;

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

end; (*struct Codegen*)