doc-src/Codegen/Thy/examples/arbitrary.ML
author Cezary Kaliszyk <kaliszyk@in.tum.de>
Sat, 27 Mar 2010 14:48:46 +0100
changeset 35990 5ceedb86aa9d
parent 30226 2f4684e2ea95
permissions -rw-r--r--
Automated lifting can be restricted to specific quotient types

structure Codegen = 
struct

val arbitrary_option : 'a option = NONE;

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

end; (*struct Codegen*)