stream

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Map

type Map[K comparable, V any] map[K]V

func (Map[K, V]) Chunk added in v0.1.5

func (slf Map[K, V]) Chunk(size int) Slice[Map[K, V]]

Chunk 是 hash.Chunk 的快捷方式

func (Map[K, V]) Each added in v0.1.5

func (slf Map[K, V]) Each(abort bool, iterator func(i int, key K, item V) bool) Map[K, V]

Each 是 hash.Each 的快捷方式

func (Map[K, V]) EachF added in v0.1.5

func (slf Map[K, V]) EachF(iterator func(i int, key K, item V) bool) Map[K, V]

EachF 是 hash.EachF 的快捷方式

func (Map[K, V]) EachT added in v0.1.5

func (slf Map[K, V]) EachT(iterator func(i int, key K, item V) bool) Map[K, V]

EachT 是 hash.EachT 的快捷方式

func (Map[K, V]) Filter

func (slf Map[K, V]) Filter(reserve bool, expression func(key K, value V) bool) Map[K, V]

Filter 是 hash.Filter 的快捷方式

func (Map[K, V]) FilterCopy added in v0.1.5

func (slf Map[K, V]) FilterCopy(reserve bool, expression func(key K, value V) bool) Map[K, V]

FilterCopy 是 hash.FilterCopy 的快捷方式

func (Map[K, V]) FilterF added in v0.1.5

func (slf Map[K, V]) FilterF(expression func(key K, value V) bool) Map[K, V]

FilterF 是 hash.FilterF 的快捷方式

func (Map[K, V]) FilterFCopy added in v0.1.5

func (slf Map[K, V]) FilterFCopy(expression func(key K, value V) bool) Map[K, V]

FilterFCopy 是 hash.FilterFCopy 的快捷方式

func (Map[K, V]) FilterT added in v0.1.5

func (slf Map[K, V]) FilterT(expression func(key K, value V) bool) Map[K, V]

FilterT 是 hash.FilterT 的快捷方式

func (Map[K, V]) FilterTCopy added in v0.1.5

func (slf Map[K, V]) FilterTCopy(expression func(key K, value V) bool) Map[K, V]

FilterTCopy 是 hash.FilterTCopy 的快捷方式

func (Map[K, V]) Keys added in v0.1.5

func (slf Map[K, V]) Keys() Slice[K]

Keys 返回键列表

func (Map[K, V]) Map added in v0.1.5

func (slf Map[K, V]) Map() map[K]V

Map 返回映射

func (Map[K, V]) Values added in v0.1.5

func (slf Map[K, V]) Values() Slice[V]

Values 返回值列表

type Slice

type Slice[V any] []V

func (Slice[V]) Chunk added in v0.1.5

func (slf Slice[V]) Chunk(size int) Slices[V]

Chunk 是 slice.Chunk 的快捷方式

func (Slice[V]) Copy added in v0.1.5

func (slf Slice[V]) Copy() Slice[V]

Copy 复制一份切片

func (Slice[V]) Drop added in v0.1.5

func (slf Slice[V]) Drop(start, n int) Slice[V]

Drop 是 slice.Drop 的快捷方式

func (Slice[V]) DropBy added in v0.1.5

func (slf Slice[V]) DropBy(fn func(index int, value V) bool) Slice[V]

DropBy 是 slice.DropBy 的快捷方式

func (Slice[V]) Each added in v0.1.5

func (slf Slice[V]) Each(abort bool, iterator func(index int, item V) bool) Slice[V]

Each 是 slice.Each 的快捷方式

func (Slice[V]) EachF added in v0.1.5

func (slf Slice[V]) EachF(iterator func(index int, item V) bool) Slice[V]

EachF 是 slice.EachF 的快捷方式

func (Slice[V]) EachReverse added in v0.1.5

func (slf Slice[V]) EachReverse(abort bool, iterator func(index int, item V) bool) Slice[V]

EachReverse 是 slice.EachReverse 的快捷方式

func (Slice[V]) EachReverseF added in v0.1.5

func (slf Slice[V]) EachReverseF(iterator func(index int, item V) bool) Slice[V]

EachReverseF 是 slice.EachReverseF 的快捷方式

func (Slice[V]) EachReverseT added in v0.1.5

func (slf Slice[V]) EachReverseT(iterator func(index int, item V) bool) Slice[V]

EachReverseT 是 slice.EachReverseT 的快捷方式

func (Slice[V]) EachT added in v0.1.5

func (slf Slice[V]) EachT(iterator func(index int, item V) bool) Slice[V]

EachT 是 slice.EachT 的快捷方式

func (Slice[V]) FillBy added in v0.1.5

func (slf Slice[V]) FillBy(fn func(index int, value V) V) Slice[V]

FillBy 是 slice.FillBy 的快捷方式

func (Slice[V]) FillByCopy added in v0.1.5

func (slf Slice[V]) FillByCopy(fn func(index int, value V) V) Slice[V]

FillByCopy 是 slice.FillByCopy 的快捷方式

func (Slice[V]) FillUntil added in v0.1.5

func (slf Slice[V]) FillUntil(abort bool, fn func(index int, value V) (V, bool)) Slice[V]

FillUntil 是 slice.FillUntil 的快捷方式

func (Slice[V]) FillUntilCopy added in v0.1.5

func (slf Slice[V]) FillUntilCopy(abort bool, fn func(index int, value V) (V, bool)) Slice[V]

FillUntilCopy 是 slice.FillUntilCopy 的快捷方式

func (Slice[V]) FillUntilF added in v0.1.5

func (slf Slice[V]) FillUntilF(fn func(index int, value V) (V, bool)) Slice[V]

FillUntilF 是 slice.FillUntilF 的快捷方式

func (Slice[V]) FillUntilFCopy added in v0.1.5

func (slf Slice[V]) FillUntilFCopy(fn func(index int, value V) (V, bool)) Slice[V]

FillUntilFCopy 是 slice.FillUntilFCopy 的快捷方式

func (Slice[V]) FillUntilT added in v0.1.5

func (slf Slice[V]) FillUntilT(fn func(index int, value V) (V, bool)) Slice[V]

FillUntilT 是 slice.FillUntilT 的快捷方式

func (Slice[V]) FillUntilTCopy added in v0.1.5

func (slf Slice[V]) FillUntilTCopy(fn func(index int, value V) (V, bool)) Slice[V]

FillUntilTCopy 是 slice.FillUntilTCopy 的快捷方式

func (Slice[V]) Filter

func (slf Slice[V]) Filter(reserve bool, expression func(index int, item V) bool) Slice[V]

Filter 是 slice.Filter 的快捷方式

func (Slice[V]) FilterCopy added in v0.1.5

func (slf Slice[V]) FilterCopy(reserve bool, expression func(index int, item V) bool) Slice[V]

FilterCopy 是 slice.FilterCopy 的快捷方式

func (Slice[V]) FilterF added in v0.1.5

func (slf Slice[V]) FilterF(expression func(index int, item V) bool) Slice[V]

FilterF 是 slice.FilterF 的快捷方式

func (Slice[V]) FilterFCopy added in v0.1.5

func (slf Slice[V]) FilterFCopy(expression func(index int, item V) bool) Slice[V]

FilterFCopy 是 slice.FilterFCopy 的快捷方式

func (Slice[V]) FilterT added in v0.1.5

func (slf Slice[V]) FilterT(expression func(index int, item V) bool) Slice[V]

FilterT 是 slice.FilterT 的快捷方式

func (Slice[V]) FilterTCopy added in v0.1.5

func (slf Slice[V]) FilterTCopy(expression func(index int, item V) bool) Slice[V]

FilterTCopy 是 slice.FilterTCopy 的快捷方式

func (Slice[V]) Indexes added in v0.1.5

func (slf Slice[V]) Indexes() Slice[int]

Indexes 将切片转换为索引切片

func (Slice[V]) Map added in v0.1.5

func (slf Slice[V]) Map() Map[int, V]

Map 将切片转为 map

func (Slice[V]) Shuffle

func (slf Slice[V]) Shuffle() Slice[V]

Shuffle 是 slice.Shuffle 的快捷方式

func (Slice[V]) ShuffleCopy added in v0.1.5

func (slf Slice[V]) ShuffleCopy() Slice[V]

ShuffleCopy 是 slice.ShuffleCopy 的快捷方式

func (Slice[V]) Slice added in v0.1.5

func (slf Slice[V]) Slice() []V

Slice 返回切片

func (Slice[V]) UniqueBy added in v0.1.5

func (slf Slice[V]) UniqueBy(fn func(V) any) Slice[V]

UniqueBy 是 slice.UniqueBy 的快捷方式

func (Slice[V]) Zoom added in v0.1.5

func (slf Slice[V]) Zoom(newSize int) Slice[V]

Zoom 是 slice.Zoom 的快捷方式

type Slices added in v0.1.5

type Slices[V any] []Slice[V]

func (Slices[V]) Drop added in v0.1.5

func (slf Slices[V]) Drop(start, n int) Slices[V]

Drop 的快捷方式

func (Slices[V]) DropBy added in v0.1.5

func (slf Slices[V]) DropBy(fn func(index int, value Slice[V]) bool) Slices[V]

DropBy 的快捷方式

func (Slices[V]) Each added in v0.1.5

func (slf Slices[V]) Each(abort bool, iterator func(index int, item Slice[V]) bool) Slices[V]

Each 的快捷方式

func (Slices[V]) EachF added in v0.1.5

func (slf Slices[V]) EachF(iterator func(index int, item Slice[V]) bool) Slices[V]

EachF 的快捷方式

func (Slices[V]) EachReverse added in v0.1.5

func (slf Slices[V]) EachReverse(abort bool, iterator func(index int, item Slice[V]) bool) Slices[V]

EachReverse 的快捷方式

func (Slices[V]) EachReverseF added in v0.1.5

func (slf Slices[V]) EachReverseF(iterator func(index int, item Slice[V]) bool) Slices[V]

EachReverseF 的快捷方式

func (Slices[V]) EachReverseT added in v0.1.5

func (slf Slices[V]) EachReverseT(iterator func(index int, item Slice[V]) bool) Slices[V]

EachReverseT 的快捷方式

func (Slices[V]) EachT added in v0.1.5

func (slf Slices[V]) EachT(iterator func(index int, item Slice[V]) bool) Slices[V]

EachT 的快捷方式

func (Slices[V]) FillBy added in v0.1.5

func (slf Slices[V]) FillBy(fn func(index int, value Slice[V]) Slice[V]) Slices[V]

FillBy 的快捷方式

func (Slices[V]) FillByCopy added in v0.1.5

func (slf Slices[V]) FillByCopy(fn func(index int, value Slice[V]) Slice[V]) Slices[V]

FillByCopy 的快捷方式

func (Slices[V]) FillUntil added in v0.1.5

func (slf Slices[V]) FillUntil(abort bool, fn func(index int, value Slice[V]) (Slice[V], bool)) Slices[V]

FillUntil 的快捷方式

func (Slices[V]) FillUntilCopy added in v0.1.5

func (slf Slices[V]) FillUntilCopy(abort bool, fn func(index int, value Slice[V]) (Slice[V], bool)) Slices[V]

FillUntilCopy 的快捷方式

func (Slices[V]) FillUntilF added in v0.1.5

func (slf Slices[V]) FillUntilF(fn func(index int, value Slice[V]) (Slice[V], bool)) Slices[V]

FillUntilF 的快捷方式

func (Slices[V]) FillUntilFCopy added in v0.1.5

func (slf Slices[V]) FillUntilFCopy(fn func(index int, value Slice[V]) (Slice[V], bool)) Slices[V]

FillUntilFCopy 的快捷方式

func (Slices[V]) FillUntilT added in v0.1.5

func (slf Slices[V]) FillUntilT(fn func(index int, value Slice[V]) (Slice[V], bool)) Slices[V]

FillUntilT 的快捷方式

func (Slices[V]) FillUntilTCopy added in v0.1.5

func (slf Slices[V]) FillUntilTCopy(fn func(index int, value Slice[V]) (Slice[V], bool)) Slices[V]

FillUntilTCopy 的快捷方式

func (Slices[V]) Filter added in v0.1.5

func (slf Slices[V]) Filter(reserve bool, expression func(index int, item Slice[V]) bool) Slices[V]

Filter 的快捷方式

func (Slices[V]) FilterCopy added in v0.1.5

func (slf Slices[V]) FilterCopy(reserve bool, expression func(index int, item Slice[V]) bool) Slices[V]

FilterCopy 的快捷方式

func (Slices[V]) FilterF added in v0.1.5

func (slf Slices[V]) FilterF(expression func(index int, item Slice[V]) bool) Slices[V]

FilterF 的快捷方式

func (Slices[V]) FilterFCopy added in v0.1.5

func (slf Slices[V]) FilterFCopy(expression func(index int, item Slice[V]) bool) Slices[V]

FilterFCopy 的快捷方式

func (Slices[V]) FilterT added in v0.1.5

func (slf Slices[V]) FilterT(expression func(index int, item Slice[V]) bool) Slices[V]

FilterT 的快捷方式

func (Slices[V]) FilterTCopy added in v0.1.5

func (slf Slices[V]) FilterTCopy(expression func(index int, item Slice[V]) bool) Slices[V]

FilterTCopy 的快捷方式

func (Slices[V]) Merge added in v0.1.5

func (slf Slices[V]) Merge() Slice[V]

Merge 合并为一个切片

func (Slices[V]) Shuffle added in v0.1.5

func (slf Slices[V]) Shuffle() Slices[V]

Shuffle 的快捷方式

func (Slices[V]) ShuffleCopy added in v0.1.5

func (slf Slices[V]) ShuffleCopy() Slices[V]

ShuffleCopy 的快捷方式

func (Slices[V]) UniqueBy added in v0.1.5

func (slf Slices[V]) UniqueBy(fn func(Slice[V]) any) Slices[V]

UniqueBy 的快捷方式

Jump to

Keyboard shortcuts

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