github.com/emirpasic/gods/lists/arraylist.List.elements (field)
29 uses
github.com/emirpasic/gods/lists/arraylist (current package)
arraylist.go#L26: elements []interface{}
arraylist.go#L48: list.elements[list.size] = value
arraylist.go#L61: return list.elements[index], true
arraylist.go#L71: list.elements[index] = nil // cleanup reference
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#L86: for _, element := range list.elements {
arraylist.go#L102: copy(newElements, list.elements[:list.size])
arraylist.go#L111: for index, element := range list.elements {
arraylist.go#L132: list.elements = []interface{}{}
arraylist.go#L137: if len(list.elements) < 2 {
arraylist.go#L140: utils.Sort(list.elements[:list.size], comparator)
arraylist.go#L146: list.elements[i], list.elements[j] = list.elements[j], list.elements[i]
arraylist.go#L166: copy(list.elements[index+l:], list.elements[index:list.size-l])
arraylist.go#L167: copy(list.elements[index:], values)
arraylist.go#L183: list.elements[index] = value
arraylist.go#L190: for _, value := range list.elements[:list.size] {
arraylist.go#L204: copy(newElements, list.elements)
arraylist.go#L205: list.elements = newElements
arraylist.go#L211: currentCapacity := cap(list.elements)
arraylist.go#L224: currentCapacity := cap(list.elements)
iterator.go#L48: return iterator.list.elements[iterator.index]
serialization.go#L19: return json.Marshal(list.elements[:list.size])
serialization.go#L24: err := json.Unmarshal(data, &list.elements)
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. |