doc-src/Codegen/Thy/examples/arbitrary.ML
author Cezary Kaliszyk <kaliszyk@in.tum.de>
Wed, 13 Jul 2011 00:23:24 +0900
changeset 43785 2bd54d4b5f3d
parent 30226 2f4684e2ea95
permissions -rw-r--r--
HOL/Import for HOLLight revival: Proper theory headers, update generation scripts to SVN version of HOL Light, add some constant maps and compatibility theorems
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
21190
08ec81dfc7fb (continued)
haftmann
parents:
diff changeset
     1
structure Codegen = 
08ec81dfc7fb (continued)
haftmann
parents:
diff changeset
     2
struct
08ec81dfc7fb (continued)
haftmann
parents:
diff changeset
     3
08ec81dfc7fb (continued)
haftmann
parents:
diff changeset
     4
val arbitrary_option : 'a option = NONE;
08ec81dfc7fb (continued)
haftmann
parents:
diff changeset
     5
21994
dfa5133dbe73 updated manual
haftmann
parents: 21993
diff changeset
     6
fun dummy_option [] = arbitrary_option
dfa5133dbe73 updated manual
haftmann
parents: 21993
diff changeset
     7
  | dummy_option (x :: xs) = SOME x;
21190
08ec81dfc7fb (continued)
haftmann
parents:
diff changeset
     8
08ec81dfc7fb (continued)
haftmann
parents:
diff changeset
     9
end; (*struct Codegen*)