Documentation ¶
Index ¶
- func Cast2[K constraints.Ordered, V1, V2 any](iter1 iter.Seq2[K, V1]) iter.Seq2[K, V2]
- func Clip[K any](i1 iter.Seq[K], n int) iter.Seq[K]
- func Clip2[K, V any](it iter.Seq2[K, V], n int) iter.Seq2[K, V]
- func KeySort[Map ~map[K]V, K constraints.Ordered, V any](m Map) iter.Seq2[K, V]
- func Keys[K constraints.Ordered, V any](i1 iter.Seq2[K, V]) iter.Seq[K]
- func MatchKeys[K comparable, V any, S ~[]K](it iter.Seq2[K, V], keys S) iter.Seq2[K, V]
- func Values[K constraints.Ordered, V any](i1 iter.Seq2[K, V]) iter.Seq[V]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cast2 ¶
Cast2 converts the iterator K,V1 to an iterator of K,V2. It uses interface type casting to do so, which means either V1 or V2 should be an interface that is type castable to the other type. It will panic if not.
func KeySort ¶
func KeySort[Map ~map[K]V, K constraints.Ordered, V any](m Map) iter.Seq2[K, V]
KeySort returns an iterator that iterates the given map by ordered keys so that iteration is repeatable and predictable.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.