asdlGen Reference Manual : Input Syntax : Type Definitions : Product Types
Previous: Primitive Types
Next: Sum Types

3.3.2. Product Types

Product types are record or tuple declarations. They consist of a non-empty sequence of fields separated by commas enclosed in parenthesis. For example

 
pair_of_ints = (int, int) 
declares a new type pair_of_ints that consists of two integers.


asdlGen Reference Manual : Input Syntax : Type Definitions : Product Types
Previous: Primitive Types
Next: Sum Types