ocaml-base-compiler
Official release 4.14.0
1024" x-on:close-sidebar="sidebar=window.innerWidth > 1024 && true">
package ocaml-base-compiler
-
dynlink
-
ocamlbytecomp
-
ocamlcommon
-
ocamlmiddleend
-
ocamloptcomp
-
odoc_info
-
stdlib
-
str
-
unix
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
type desc =
| Any | ||||
| Construct of Types.constructor_description | ||||
| Constant of Asttypes.constant | ||||
| Tuple of int | ||||
| Record of Types.label_description list | ||||
| Variant of {
} | ||||
| Array of int | ||||
| Lazy |
type t = desc Typedtree.pattern_data
val arity : t -> int
val deconstruct : Simple.pattern -> t * Typedtree.pattern list
deconstruct p
returns the head of p
and the list of sub patterns.
- raises [Invalid_arg
_] if
p
is an or- or an exception-pattern.
val to_omega_pattern : t -> Typedtree.pattern
reconstructs a pattern, putting wildcards as sub-patterns.
val omega : t
ON THIS PAGE
No table of contents