Solution Review: Tuples from Records
This lesson explains the solution for the tuples from records exercise.
We'll cover the following...
Solution
Press + to interact
type personalInfo = {name: string,age: int,city: string};let mario = {name: "Mario",age: 50,city: "Mushroom Kingdom"};let infoTuple = (person: personalInfo) => {(person.name, person.age, person.city);};Js.log(infoTuple(mario));
...