package lists
Import Path
github.com/emirpasic/gods/lists (on go.dev)
Dependency Relation
imports 2 packages, and imported by one package
Involved Source Files
Package lists provides an abstract List interface.
In computer science, a list or sequence is an abstract data type that represents an ordered sequence of values, where the same value may occur more than once. An instance of a list is a computer representation of the mathematical concept of a finite sequence; the (potentially) infinite analog of a list is a stream. Lists are a basic example of containers, as they contain other values. If the same value occurs multiple times, each occurrence is considered a distinct item.
Reference: https://en.wikipedia.org/wiki/List_%28abstract_data_type%29
Package-Level Type Names (only one, which is exported)
List interface that all lists implement
( T) Add(values ...interface{})
( T) Clear()
( T) Contains(values ...interface{}) bool
( T) Empty() bool
( T) Get(index int) (interface{}, bool)
( T) Insert(index int, values ...interface{})
( T) Remove(index int)
( T) Set(index int, value interface{})
( T) Size() int
( T) Sort(comparator utils.Comparator)
( T) Swap(index1, index2 int)
( T) Values() []interface{}
*github.com/emirpasic/gods/lists/arraylist.List
T : github.com/emirpasic/gods/containers.Container
T : github.com/emirpasic/gods/trees.Tree
![]() |
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. |