dsx

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: MIT Imports: 2 Imported by: 0

README

dsx

Additional data structures for Go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Vec

type Vec[V any] struct {
	// contains filtered or unexported fields
}

Vec is a better interface for a slice

func NewVec

func NewVec[V any]() Vec[V]

func NewVecWithCapacity

func NewVecWithCapacity[V any](cap int) Vec[V]

func (Vec[V]) Append

func (v Vec[V]) Append(val V)

func (Vec[V]) AppendSeq

func (v Vec[V]) AppendSeq(seq iterx.Seq[V])

func (Vec[V]) AppendSlice

func (v Vec[V]) AppendSlice(vals []V)

func (Vec[V]) Clear

func (v Vec[V]) Clear()

func (Vec[V]) Iter

func (v Vec[V]) Iter() iterx.Seq[V]

func (Vec[V]) Len

func (v Vec[V]) Len() int

Jump to

Keyboard shortcuts

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