From 2246bbb7a8a5746c07799bd754a8f22ad358d8d1 Mon Sep 17 00:00:00 2001 From: Daniel John Keefer Date: Wed, 22 May 2024 19:49:55 +1000 Subject: refactor: Apply suggestions from code review Co-authored-by: Louis Pilfold --- .../chapter3_data_types/lesson04_record_pattern_matching/en.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/content/chapter3_data_types/lesson04_record_pattern_matching/en.html b/src/content/chapter3_data_types/lesson04_record_pattern_matching/en.html index 2c0c2fa..3c09080 100644 --- a/src/content/chapter3_data_types/lesson04_record_pattern_matching/en.html +++ b/src/content/chapter3_data_types/lesson04_record_pattern_matching/en.html @@ -1,10 +1,10 @@

It is possible to pattern match on a record, this allows for the extraction - of multiple field values from a record into distinct variables in a concise and efficient way. + of multiple field values from a record into distinct variables, similar to matching on a tuple or a list.

- the let key word can only match on single variant custom types. For types with more variants - a case statement must be used. + The let key word can only match on single variant custom types. For types with more variants + a case expression must be used.

It is possible to use underscore _ or the spread syntax .. to -- cgit v1.2.3