Documentation
¶
Index ¶
- func Act[T any](v T, a Action) act[T]
- func ActFn[T any](s int, fn func(T) bool, a Action) actFn[T]
- func IsZero[T any](val T) (ok bool)
- func Pop[T any](arr []T) (res T, out []T, ok bool)
- func Shift[T any](arr []T) (res T, out []T, ok bool)
- func Split[Arr, Item any](itr Iter[Arr, Item], match Match[Window[Arr], SplitResult[Arr]]) (result []Arr)
- type Action
- type Eq
- type Index
- type Iter
- type Match
- type Range
- type Size
- type SplitArguments
- type SplitResult
- type Window
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Iter ¶
type Iter[Arr, Item any] interface { Index(idx int) (Item, bool) Slice(from, to int) (Arr, bool) Step(n int) (Item, bool) Window(n int) (Arr, bool) Iter() iter.Seq2[int, Item] Reverse() Iter[Arr, Item] I() int }
Click to show internal directories.
Click to hide internal directories.