Skip to content
User Avatar
#1133
Auto-translated
RedHeavenHero
Would something like this work?
function cut(array, index)
	local ar = {}
	for i, e in array do
		if i ~= index then
			ar[i] = e
		end
	end
	return ar
end
So, there isn't a standard function for this? Iterating through an array is already a resource-intensive operation. And what if you need to add an element to the array later? Would you have to manually write the shift? )))
Моды для HeroesV:
NHF 0.90 : NHF - группа в VK

Карты для HeroesV:
Путешествие , Условие крови , Рука судьбы.Часть 1: В поход , Рука судьбы.Часть 2: Отчаянье , Рука судьбы.Часть 3: Восхождение , Стойкость
Абсолютная власть , Иду на Вы! , Корона Ургаша , На задворках
Мир надо уничтожить... Чтобы создать свой...