doc-src/Codegen/Thy/examples/arbitrary.ML
author blanchet
Wed, 08 Jun 2011 08:47:43 +0200
changeset 43258 956895f99904
parent 30226 2f4684e2ea95
permissions -rw-r--r--
slightly faster/cleaner accumulation of polymorphic consts

structure Codegen = 
struct

val arbitrary_option : 'a option = NONE;

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

end; (*struct Codegen*)