Introduction

Let's take a look at what data structures are present in Reason.

What Are Data Structures?

A data structure is a meaningful way of storing and organizing data according to a set of rules. Data structures are crucial when dealing with large amounts of data.

Many languages, including JavaScript, support the use of data structures. A common example is that of an array or list.

Reason’s Approach

While there isn’t a huge variety of data structures available, Reason provides us with some very convenient ones. The main structures in Reason are:

  • Tuples

  • Records

  • Arrays

  • Lists

  • Variants

Get hands-on with 1400+ tech skills courses.