classdef Vector < types.List
    methods
        function obj = Vector(varargin)
            obj.data = varargin;
            meta = type_utils.nil;
        end

        function ret = slice(obj, start, last)
            if nargin < 3
                last = length(obj.data);
            end
            ret = types.Vector(obj.data{2:end});
        end

        function ret = clone(obj)
            ret = types.Vector();
            ret.data = obj.data;
            ret.meta = obj.meta;
        end
    end
end
