I really like F#'s approach to this
let point2 = { point1 with y = value }
https://docs.microsoft.com/en-us/dotnet/fsharp/language-refe...EDIT This is inherited from OCaml - https://v1.realworldocaml.org/v1/en/html/records.html#functi...