---
title: "What is a record and how you can define records in Erlang?"  
description: "What is a record and how you can define records in Erlang?"  
author: "Anonymous User"  
published: 2015-06-27  
updated: 2020-09-16  
canonical: https://www.mindstick.com/interview/2665/what-is-a-record-and-how-you-can-define-records-in-erlang  
category: "erlang"  
tags: ["functional programming", "concurrent programming", "erlang"]  
reading_time: 1 minute  

---

# What is a record and how you can define records in Erlang?

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] } )

## Answers

### Answer by Anonymous User

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] } )


---

Original Source: https://www.mindstick.com/interview/2665/what-is-a-record-and-how-you-can-define-records-in-erlang

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
