Assigning Values to an Array: Difference between revisions

Content added Content deleted
(deprecated task)
Line 1: Line 1:
{{DeprecatedTask}}
{{Template:clarify task}}


'''This task is obsolete. Please do not add new code, and move existing code to the [[Arrays]] task.'''
'''Please do not add new code, and move existing code to the [[Arrays]] task.'''


In this task, the goal is to assign a value to an element of an [[array]]. The value should only replace an existing value, and not insert a new key should the key not exist. If the key does not exist, an error should be returned.
In this task, the goal is to assign a value to an element of an [[array]]. The value should only replace an existing value, and not insert a new key should the key not exist. If the key does not exist, an error should be returned.