element assignment for an array, assoc, and at