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

Method IsEmpty

structure/dynamicarray/dynamicarray.go:78–80  ·  view source on GitHub ↗

IsEmpty function is check that the array has value or not

()

Source from the content-addressed store, hash-verified

76
77// IsEmpty function is check that the array has value or not
78func (da *DynamicArray) IsEmpty() bool {
79 return da.Size == 0
80}
81
82// GetData function return all value of array
83func (da *DynamicArray) GetData() []any {

Callers 1

TestDynamicArrayFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestDynamicArrayFunction · 0.76