doc-src/Codegen/Thy/examples/arbitrary.ML
author haftmann
Tue, 21 Jul 2009 11:09:50 +0200
changeset 32117 0762b9ad83df
parent 30226 2f4684e2ea95
permissions -rw-r--r--
Set.thy: prefer = over == where possible; tuned ML setup; dropped (moved) ML legacy

structure Codegen = 
struct

val arbitrary_option : 'a option = NONE;

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

end; (*struct Codegen*)