Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListLike ¶
type ListLike[T any] interface { // The IsEmpty method checks if the list is empty and returns a boolean value // indicating whether it is empty or not. IsEmpty() bool // The Size method returns the number of elements currently in the list. Size() int // The Capacity method returns the maximum number of elements that the list can hold. Capacity() optional.Int // The Clear method is used to remove all elements from the list, making it empty. Clear() // The IsFull method checks if the list is full, meaning it has reached its maximum // capacity and cannot accept any more elements. IsFull() bool // The String method returns a string representation of the list. // It is useful for debugging and logging purposes. fmt.Stringer // CutNilValues is a method that removes all nil values from the list. // It is useful for cleaning up the list and removing any empty or nil elements. CutNilValues() // The itf.Iterable interface is used to provide an iterator for the list. itf.Iterable[T] // The itf.Slicer interface is used to provide a slicer for the list. itf.Slicer[T] // The itf.Copier interface is used to provide a method for copying the list. itf.Copier }
Directories ¶
Path | Synopsis |
---|---|
Package ListLike provides a Lister interface that defines methods for a list data structure.
|
Package ListLike provides a Lister interface that defines methods for a list data structure. |
Package ListLike provides a Queuer interface that defines methods for a queue data structure.
|
Package ListLike provides a Queuer interface that defines methods for a queue data structure. |
Package ListLike provides a Stacker interface that defines methods for a stack data structure.
|
Package ListLike provides a Stacker interface that defines methods for a stack data structure. |
Click to show internal directories.
Click to hide internal directories.