doc-src/Codegen/Thy/examples/arbitrary.ML
author wenzelm
Wed, 02 Dec 2009 12:04:07 +0100
changeset 33930 6a973bd43949
parent 30226 2f4684e2ea95
permissions -rw-r--r--
slightly less ambitious settings, to avoid potential out-of-memory problem;

structure Codegen = 
struct

val arbitrary_option : 'a option = NONE;

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

end; (*struct Codegen*)