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 { // IsEmpty is a method that checks whether the list is empty. // // Returns: // // - bool: True if the list is empty, false otherwise. IsEmpty() bool // Size method returns the number of elements currently in the list. // // Returns: // // - int: The number of elements in the list. Size() int // Clear method is used to remove all elements from the list, making it empty. Clear() // Capacity is a method that returns the maximum number of elements that the list can hold. // // Returns: // // - int: The maximum number of elements that the list can hold. -1 if there is no limit. Capacity() int // IsFull is a method that checks whether the list is full. // // Returns: // // - bool: True if the list is full, false otherwise. IsFull() bool // Slice is a method that returns a slice of the elements in the list. // // Returns: // - []T: A slice of the elements in the list. Slice() []T uc.Iterable[T] uc.Copier fmt.GoStringer }
ListLike is an interface that defines methods for a list data structure.
Click to show internal directories.
Click to hide internal directories.