MCPcopy Create free account
hub / github.com/TheAlgorithms/Go / GetData

Method GetData

structure/dynamicarray/dynamicarray.go:83–85  ·  view source on GitHub ↗

GetData function return all value of array

()

Source from the content-addressed store, hash-verified

81
82// GetData function return all value of array
83func (da *DynamicArray) GetData() []any {
84 return da.ElementData[:da.Size]
85}
86
87// CheckRangeFromIndex function it will check the range from the index
88func (da *DynamicArray) CheckRangeFromIndex(index int) error {

Callers 1

TestDynamicArrayFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestDynamicArrayFunction · 0.76