diff options
-rw-r--r-- | src/content/chapter3_data_types/lesson04_record_pattern_matching/en.html | 6 |
1 files 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 @@ <p> 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. </p> <p> - 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. </p> <p> It is possible to use underscore <code>_</code> or the spread syntax <code>..</code> to |