doc-src/Codegen/Thy/examples/arbitrary.ML
author wenzelm
Mon, 02 May 2011 22:00:38 +0200
changeset 42632 ebec0c1a5984
parent 30226 2f4684e2ea95
permissions -rw-r--r--
just one railsetup.sty which is shipped with the official distribution to accompany @{rail} in Pure;

structure Codegen = 
struct

val arbitrary_option : 'a option = NONE;

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

end; (*struct Codegen*)