function s = parforfirst(varargin)
%PARFORFIRST                     Private utility function for parallel

%PARFORFIRST  Starting value for PARFOR on each processor.

%   Copyright 2006-2021 The MathWorks, Inc.

if parfor_depth == 1
    c = distributedutil.drangeColon(varargin{:});
    if isempty(c)
        s = c;
    else
        s = c(1);
    end
else
    s = varargin{1};
end