Concise way of updating a nested value inside a record in Elm (0.18)
问题 I am looking for a concise way of updating a nested value inside a record in Elm (0.18). Given the following example: person = { name = "Steven", address = { country = "Spain", city = "Barcelona" } } I can update person.name to "Steve" using the following expression: { person | name = "Steve" } However, I am looking for a way to update a nested value. For instance, I would like to update person.address.city to "Madrid". I tried the following: { person | address.city = "Madrid" } { person |