Sets only a single element within a list attribute.

.setSubAttrInList(object, attr, subAttr, value)

Arguments

object

An arbitrary object

attr

The attribute name (that is a list object) to change

subAttr

The list element name to change

value

The new value

Value

This sets or updates the subAttr element of a list that is located at attr(object, attr), with the value. This, therefore, updates a sub-element of a list attribute and returns that same object with the updated attribute.