ReScript has two first-class data structures that we can use to represent ordered collections of data: arrays and lists. Arrays are almost identical to JavaScript arrays, while lists are linked lists with immutable contents. In this chapter, we’ll go over syntax and examples for lists and arrays, and discuss differences and use cases for each one. We’ll also cover three important higher-order functions that can be used with collections: map, filter, and reduce.
Arrays
ReScript’s arrays will feel very familiar to readers coming from ...