function [out, varargout] = serializeHelper(in, varargin)
%

%   Copyright 2016 The MathWorks, Inc.

if isnumeric(in) && isscalar(in)
    out = in;
else
    out = mlsparkserialize(in);
end

if nargin > 1
    varargout = cellfun(@serializeHelper, varargin, 'UniformOutput', false);
end
