Documentation ¶
Index ¶
- func Cap[T constraints.Ordered](v USize) sliceOption[T]
- func Items[T constraints.Ordered](v ...T) sliceOption[T]
- func Len[T constraints.Ordered](v USize) sliceOption[T]
- type Size
- type Slice
- func (s *Slice[T]) Add(v ...T) *Slice[T]
- func (s Slice[T]) At(i USize) T
- func (s *Slice[T]) Clear() *Slice[T]
- func (s Slice[T]) Copy() *Slice[T]
- func (s Slice[T]) Len() USize
- func (s *Slice[T]) Remove(i USize) *Slice[T]
- func (s *Slice[T]) Set(i USize, v T) *Slice[T]
- func (s *Slice[T]) Slice() []T
- func (s *Slice[T]) Sort() *Slice[T]
- func (s *Slice[T]) Swap(i, j USize)
- type String
- type USize
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cap ¶
func Cap[T constraints.Ordered](v USize) sliceOption[T]
func Items ¶
func Items[T constraints.Ordered](v ...T) sliceOption[T]
func Len ¶
func Len[T constraints.Ordered](v USize) sliceOption[T]
Types ¶
type Slice ¶
type Slice[T constraints.Ordered] struct { // contains filtered or unexported fields }
func Vector ¶
func Vector[T constraints.Ordered](opts ...sliceOption[T]) *Slice[T]
Click to show internal directories.
Click to hide internal directories.