doc-src/Codegen/Thy/examples/arbitrary.ML
author krauss
Fri, 27 May 2011 21:11:44 +0200
changeset 43042 0f9534b7ea75
parent 30226 2f4684e2ea95
permissions -rw-r--r--
function tutorial: do not omit termination proof, even when discussing other things

structure Codegen = 
struct

val arbitrary_option : 'a option = NONE;

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

end; (*struct Codegen*)