local function h(h,o,W)assert(o<=W,"\115\116\097\114\116\073\110\100\101\120 \109\117\115\116 \098\101 \108\101\115\115 \116\104\097\110 \111\114 \101\113\117\097\108 \116\111 \101\110\100\073\110\100\101\120")local Q={}local M=1 for o=math.max(1,o),math.min(#h,W),1 do Q[M]=h[o]M=M+1 end return Q end return h


local function getRange(list, startIndex, endIndex)
	assert(startIndex <= endIndex, "startIndex must be less than or equal to endIndex")

	local new = {}
	local index = 1

	for i = math.max(1, startIndex), math.min(#list, endIndex) do
		new[index] = list[i]
		index = index + 1
	end

	return new
end

return getRange
