aboutsummaryrefslogtreecommitdiff
path: root/lessons/src/lesson034_record_updates/text.html
blob: f23d7cd3c79826f31574a5d94f8a055d3b9a077b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<p>
  The record update syntax can be used to create a new record from an existing
  one of the same type, but with some fields changed.
</p>
<p>
  The accessor syntax can only be used for fields that are in the same position
  and have the same type for all variants of the custom type.
</p>
<p>
  Gleam is an immutable language, so using the record update syntax does not
  mutate or otherwise change the original record.
</p>