MCPcopy Create free account
hub / github.com/DNAProject/DNA / RemoveAt

Method RemoveAt

vm/neovm/types/array_value.go:51–57  ·  view source on GitHub ↗
(index int64)

Source from the content-addressed store, hash-verified

49}
50
51func (self *ArrayValue) RemoveAt(index int64) error {
52 if index < 0 || index >= self.Len() {
53 return errors.ERR_INDEX_OUT_OF_BOUND
54 }
55 self.Data = append(self.Data[:index], self.Data[index+1:]...)
56 return nil
57}

Callers 2

TestArrayValue_RemoveAtFunction · 0.95
ExecuteOpMethod · 0.80

Calls 1

LenMethod · 0.95

Tested by 1

TestArrayValue_RemoveAtFunction · 0.76