I have this model
type alias Model =
{ exampleId : Int
, groupOfExamples : GroupExamples
}
type alias GroupExamples =
{ groupId : Int
, results : List String
}
In my update function, if I want to update exampleId, it will be as follows:
{ model | exampleId = updatedValue }
But what if I need to do to update, for example, only the value of the results inside GroupExamples?
source
share