def put(a, indices, values, mode='<STR_LIT>'):
<EOL>try:<EOL><INDENT>return a.put(indices, values, mode=mode)<EOL><DEDENT>except AttributeError:<EOL><INDENT>return narray(a, copy=False).put(indices, values, mode=mode)<EOL><DEDENT>
Set storage-indexed locations to corresponding values.

This function is equivalent to `MaskedArray.put`, see that method
for details.

See Also
--------
MaskedArray.put