github.com/emirpasic/gods/lists/arraylist.List.size (field)
26 uses
github.com/emirpasic/gods/lists/arraylist (current package)
arraylist.go#L27: size int
arraylist.go#L48: list.elements[list.size] = value
arraylist.go#L49: list.size++
arraylist.go#L72: copy(list.elements[index:], list.elements[index+1:list.size]) // shift to the left by one (slow operation, need ways to optimize this)
arraylist.go#L73: list.size--
arraylist.go#L101: newElements := make([]interface{}, list.size, list.size)
arraylist.go#L102: copy(newElements, list.elements[:list.size])
arraylist.go#L108: if list.size == 0 {
arraylist.go#L121: return list.size == 0
arraylist.go#L126: return list.size
arraylist.go#L131: list.size = 0
arraylist.go#L140: utils.Sort(list.elements[:list.size], comparator)
arraylist.go#L157: if index == list.size {
arraylist.go#L165: list.size += l
arraylist.go#L166: copy(list.elements[index+l:], list.elements[index:list.size-l])
arraylist.go#L177: if index == list.size {
arraylist.go#L190: for _, value := range list.elements[:list.size] {
arraylist.go#L199: return index >= 0 && index < list.size
arraylist.go#L212: if list.size+n >= currentCapacity {
arraylist.go#L225: if list.size <= int(float32(currentCapacity)*shrinkFactor) {
arraylist.go#L226: list.resize(list.size)
iterator.go#L29: if iterator.index < iterator.list.size {
iterator.go#L66: iterator.index = iterator.list.size
serialization.go#L19: return json.Marshal(list.elements[:list.size])
serialization.go#L26: list.size = len(list.elements)
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |