doc-src/Codegen/Thy/examples/arbitrary.ML
author wenzelm
Thu, 19 Mar 2009 16:56:51 +0100
changeset 30590 1d9c9fcf8513
parent 30226 2f4684e2ea95
permissions -rw-r--r--
parameterized datatype antiquote and read operation;

structure Codegen = 
struct

val arbitrary_option : 'a option = NONE;

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

end; (*struct Codegen*)