Documentation ¶
Index ¶
- func Assign[E any](s []E, _len, _cap int) []E
- func AssignLen[E any](s []E, _len int) []E
- func Delete[E any](s []E, i int) []E
- func Deletes[E any](s []E, delete func(i int) bool) []E
- func Filter[E any](s []E, filter func(E) bool) (filtered []E)
- func FilterP[E any](s []E, filter func(*E) bool) (filtered []E)
- func FilterPP[E any](s []E, filter func(*E) bool) (filtered []*E)
- func ForEach[E any](s []E, action func(E))
- func ForEachP[E any](s []E, action func(*E))
- func GoPanicIndex(x int, y int)
- func GoPanicSliceAlen(x int, y int)
- func GoPanicSliceB(x int, y int)
- func Join[E any](ss [][]E) []E
- func Join11[E any](s1, s2 []E) []E
- func Join111[E any](s1, s2, s3 []E) []E
- func Join1N[E any](s []E, ss [][]E) []E
- func Join1N1[E any](s1 []E, ss [][]E, s2 []E) []E
- func JoinN1[E any](ss [][]E, s []E) []E
- func JoinNew[E any](ss ...[]E) []E
- func Locate[E any](cs [][]E, index int) (int, int)
- func LocateEnd[E any](cs [][]E, end int) (int, int)
- func LocateStart[E any](cs [][]E, start int) (int, int)
- func Map[I, O any](s []I, mapper func(I) O) (mapped []O)
- func MapP[I, O any](s []I, mapper func(*I) O) (mapped []O)
- func Reduce[E, R any](s []E, reduce func(cur R, elem E) R, init R) R
- func ReduceP[E, R any](s []E, reduce func(cur R, elem *E) R, init R) R
- func Reverse[E any](s []E)
- func TrimChunks[E any](chunks [][]E) [][]E
- func TrimChunksEnd[E any](chunks [][]E) [][]E
- func TrimChunksStart[E any](chunks [][]E) [][]E
- type Chunks
- func (cs Chunks[E]) Cut(start, end int) Chunks[E]
- func (cs Chunks[E]) First() (e E, exist bool)
- func (cs Chunks[E]) FirstPointer() *E
- func (cs Chunks[E]) Get(i int) E
- func (cs Chunks[E]) GetAndSet(i int, e E) (old E)
- func (cs Chunks[E]) Last() (e E, exist bool)
- func (cs Chunks[E]) LastPointer() *E
- func (cs Chunks[E]) Len() int
- func (cs Chunks[E]) Pointer(i int) *E
- func (cs Chunks[E]) Set(i int, e E)
- func (cs Chunks[E]) Slice(start, end int) []E
- func (cs Chunks[E]) Swap(i, j int)
- func (cs Chunks[E]) Trim() Chunks[E]
- func (cs Chunks[E]) TrimEnd() Chunks[E]
- func (cs Chunks[E]) TrimStart() Chunks[E]
- type Entry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GoPanicIndex ¶
func GoPanicSliceAlen ¶
func GoPanicSliceB ¶
func TrimChunks ¶
func TrimChunks[E any](chunks [][]E) [][]E
func TrimChunksEnd ¶
func TrimChunksEnd[E any](chunks [][]E) [][]E
func TrimChunksStart ¶
func TrimChunksStart[E any](chunks [][]E) [][]E
Types ¶
type Chunks ¶
type Chunks[E any] [][]E
func (Chunks[E]) FirstPointer ¶
func (cs Chunks[E]) FirstPointer() *E
func (Chunks[E]) LastPointer ¶
func (cs Chunks[E]) LastPointer() *E
Click to show internal directories.
Click to hide internal directories.