Structs in Chapel
Here is the translation of the code example into Chapel:
Structs in Chapel#
Chapel’s record
is a typed collection of fields. They’re useful for grouping data together to form records.
Output when running the above Chapel code:
Next example: Methods.