doc-src/Codegen/Thy/examples/arbitrary.ML
author wenzelm
Fri, 26 Nov 2010 22:29:41 +0100
changeset 40722 441260986b63
parent 30226 2f4684e2ea95
permissions -rw-r--r--
make two copies (!) of Library.UnequalLengths coincide with ListPair.UnequalLengths;

structure Codegen = 
struct

val arbitrary_option : 'a option = NONE;

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

end; (*struct Codegen*)