You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 6, 2021. It is now read-only.
Syntax proposal : Product Types
Product types to model tuples and units.
examples
a function returning the unit type (empty tuple)
a function returning a product type (tuple)
constructing a product type
this example creates a product type
(f32, i32, Foo)
.destructuring a product type
both values of the tuple are available as local
foo
andbar
omitting a value during destructuring
only
foo
is available since the second value was discarded with the_
operatoraccessing single values from a product type
The text was updated successfully, but these errors were encountered: