function X = internal_parenAssignAddNonRepeatedSub(X,RHS,varargin)
% This function is undocumented and will change in a future release.

% Forward method for ParenAssignAddNonRepeatedSubOp.
%
%   Index = varargin;
%   X(Index{:}) = X(Index{:}) + RHS
%
%
% Inputs:
%   X          = starting array
%   RHS        = updates to be applied to the specified indices
%   varargin   = indices to update
%
% Outputs:
%   X          = updated array

%   Copyright 2021 The MathWorks, Inc.

Index = varargin;
X(Index{:}) = X(Index{:}) + RHS;
end