doc-src/Codegen/Thy/examples/arbitrary.ML
author haftmann
Fri, 24 Feb 2012 22:46:16 +0100
changeset 46663 7fe029e818c2
parent 30226 2f4684e2ea95
permissions -rw-r--r--
explicit is better than implicit

structure Codegen = 
struct

val arbitrary_option : 'a option = NONE;

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

end; (*struct Codegen*)