Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cduce
cduce
Commits
28bde346
Commit
28bde346
authored
Oct 05, 2007
by
Pietro Abate
Browse files
[r2003-05-24 19:42:01 by cvscast] Comments
Original author: cvscast Date: 2003-05-24 19:42:01+00:00
parent
604ee153
Changes
1
Hide whitespace changes
Inline
Side-by-side
types/sample.mli
View file @
28bde346
...
...
@@ -2,13 +2,17 @@ type t = Types.descr
val
get
:
Types
.
descr
->
t
(**
Extract when possible a s
ub
type which is ``trivially'' non-empty.
Extract when possible a s
impler
type which is ``trivially'' non-empty.
This subtype is built from scalar and intersection of simple arrow types
using products, XML elements and records, without recursion.
using products, XML elements and records, without recursion nor
boolean combination.
The simpler type is not a subtype because of arrows...
Interpretation of this subtype, to extract sample values:
- basic type: pick a value
- open record type: add some extra field not listed
- intersection of arrow types:
...
- intersection of arrow types:
any abstraction with this interface
Raises Not_found for an empty type
**)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment