Documentation ¶
Index ¶
- func All[Slice ~[]Elem, Elem any](s Slice) iter.Seq2[int, Elem]
- func Append[Slice ~[]Elem, Elem any](x Slice, seq iter.Seq[Elem]) Slice
- func Backward[Slice ~[]Elem, Elem any](s Slice) iter.Seq2[int, Elem]
- func Collect[Elem any](seq iter.Seq[Elem]) []Elem
- func Sorted[Elem cmp.Ordered](seq iter.Seq[Elem]) []Elem
- func SortedFunc[Elem any](seq iter.Seq[Elem], cmp func(Elem, Elem) int) []Elem
- func Values[Slice ~[]Elem, Elem any](s Slice) iter.Seq[Elem]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func All ¶
All returns an iterator over index-value pairs in the slice. The indexes range in the usual order, from 0 through len(s)-1.
func Backward ¶
Backward returns an iterator over index-value pairs in the slice, traversing it backward. The indexes range from len(s)-1 down to 0.
func SortedFunc ¶
SortedFunc collects values from seq into a new slice, sorts the slice, and returns it.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.