MCPcopy Create free account
hub / github.com/benbjohnson/immutable / Len

Method Len

immutable_test.go:279–281  ·  view source on GitHub ↗

Len returns the size of the list.

()

Source from the content-addressed store, hash-verified

277
278// Len returns the size of the list.
279func (l *TList) Len() int {
280 return len(l.std)
281}
282
283// ChooseIndex returns a randomly chosen, valid index from the standard slice.
284func (l *TList) ChooseIndex(rand *rand.Rand) int {

Callers 7

TestListFunction · 0.95
ValidateMethod · 0.45
TestMap_DeleteFunction · 0.45
TestMap_LimitedHashFunction · 0.45
TestSortedMap_SetFunction · 0.45
TestSortedMap_DeleteFunction · 0.45
ValidateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected