%#codegen

function Y = horzcatx(T, varargin)
    eml_prefer_const(T);
    eml_prefer_const(varargin);

    firstFiIdx = coder.const(findFirstFiIdx(T, varargin{:}));
    if firstFiIdx == -1 
        % No fi value
        Y = horzcat(varargin{:});
    else
        nt = overcoattypex(T, varargin{:});
        Y = horzcat(fi(varargin{1}, nt), varargin{2:end});    
    end
end

