Search⌘ K

Exercise: Tuples from Records

Explore how to define a function in ReasonML that takes a personalInfo record and creates a tuple with its fields in order. This lesson helps you understand accessing record fields and returning tuples while practicing functional programming concepts in ReasonML.

Problem Statement

In this problem, you must create the infoTuple() method which take a record and creates a tuple for its field values.

The record type we’ll be ...