list

package
v0.0.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IList

type IList[T any] interface {
	Add(i T)
	AddAll(i []T)
	Contains(i T) bool
	IndexOf(i T) int
	Remove(i T) bool
	RemoveAt(i int) bool
	ToSlice() []T
	Count() int
}

type SliceList

type SliceList[T comparable] struct {
	// contains filtered or unexported fields
}

func NewSliceList

func NewSliceList[T comparable]() *SliceList[T]

func (*SliceList[T]) Add

func (l *SliceList[T]) Add(i T)

func (*SliceList[T]) AddAll

func (l *SliceList[T]) AddAll(i []T)

func (*SliceList[T]) Clear

func (l *SliceList[T]) Clear()

func (*SliceList[T]) Contains

func (l *SliceList[T]) Contains(i T) bool

func (*SliceList[T]) ContainsAll

func (l *SliceList[T]) ContainsAll(i []T) bool

func (*SliceList[T]) Count

func (l *SliceList[T]) Count() int

func (*SliceList[T]) IndexOf

func (l *SliceList[T]) IndexOf(e T) int

func (*SliceList[T]) Remove

func (l *SliceList[T]) Remove(i T) bool

func (*SliceList[T]) RemoveAt

func (l *SliceList[T]) RemoveAt(i int) bool

func (*SliceList[T]) ToSlice

func (l *SliceList[T]) ToSlice() []T

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL