For storing a fixed number of elements, a data structure is used which is referred as record. Expressions are translated into tuple expressions during compilation record.
Record in Erlang is defined by the name of the record, followed by the field names of the record. Record and field names must be atoms.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
For storing a fixed number of elements, a data structure is used which is referred as record. Expressions are translated into tuple expressions during compilation record.
Record in Erlang is defined by the name of the record, followed by the field names of the record. Record and field names must be atoms.
• record (Name, { Field1 [= Value] , … FieldN [= ValueN] } )