//echo: false
record Person(String email, String prenom, String nom, int age) {}
//Immutable List of Records
List<Person> personnes = List.of(
new Person("pierre.durand@a.fr","Pierre", "Durand", 20),
new Person("marie.durand@b.fr","Marie", "Durand", 14),
new Person("albert.martin@c.fr","Albert", "Martin", 30)
// ...
);
personnes;
[Person[email=pierre.durand@a.fr, prenom=Pierre, nom=Durand, age=20], Person[email=marie.durand@b.fr, prenom=Marie, nom=Durand, age=14], Person[email=albert.martin@c.fr, prenom=Albert, nom=Martin, age=30]]