doc-src/Codegen/Thy/examples/arbitrary.ML
author wenzelm
Sat, 22 Oct 2011 23:29:44 +0200
changeset 45250 feef63bcd787
parent 30226 2f4684e2ea95
permissions -rw-r--r--
class Text.Edit as abstract datatype;

structure Codegen = 
struct

val arbitrary_option : 'a option = NONE;

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

end; (*struct Codegen*)