func DropByIndex T any (collection T, indexes ...int) T
func DropByIndex T any (collection T, indexes ...int) T: a task in LegoFlow-SWE (Harbor dataset). Expected behavior - Negative indices should be converted to their positive equivalents ( -1 → last element, -2 → second-to-last, etc.). - Any out-of-bounds negative index (e.g., -100 on a 5‑element…
The task
**Expected behavior** - Negative indices should be converted to their positive equivalents (`-1` → last element, `-2` → second-to-last, etc.). - Any out-of-bounds negative index (e.g., `-100` on a 5‑element slice) should be ignored/filtered out—it must not affect the processing of other indices. - Valid indices must…
Part of Lego-X/LegoFlow-SWE.