everyone!
I'm a Purescript beginner and have trouble with working on records.
I have one record type:
type Employee =
{ firstName :: String
, lastName :: String
, address :: String
, height :: Number
, weight :: Number
...
}
And I want to update just a portion of this record. Let's say I want to only update height like the following typescript code.
let a: Employee = {
...a,
height: 180
}
How can I achieve this in Purescript? Thank you.