Documentation
¶
Index ¶
- func Flip[K, V any](seq iter.Seq2[K, V]) iter.Seq2[V, K]
- func Keys[K, V any](seq iter.Seq2[K, V]) iter.Seq[K]
- func Map[In, Out any](seq iter.Seq[In], fun func(In) (Out, bool)) iter.Seq[Out]
- func Map12[In, K, V any](seq iter.Seq[In], fun func(In) (K, V, bool)) iter.Seq2[K, V]
- func Map2[InKey, InVal, OutKey, OutVal any](seq iter.Seq2[InKey, InVal], fun func(InKey, InVal) (OutKey, OutVal, bool)) iter.Seq2[OutKey, OutVal]
- func Map21[K, V, Out any](seq iter.Seq2[K, V], fun func(K, V) (Out, bool)) iter.Seq[Out]
- func MapKeys[K, V any](seq iter.Seq[V], fun func(V) K) iter.Seq2[K, V]
- func MapValues[K, V any](seq iter.Seq[K], fun func(K) V) iter.Seq2[K, V]
- func Values[K, V any](seq iter.Seq2[K, V]) iter.Seq[V]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Keys ¶
Keys takes a sequence 'seq' and returns a new sequence with only the keys from the input sequence.
func Map ¶
Map applies a function to each element in the input sequence and returns a new sequence with the results.
func Map12 ¶
Map12 applies a function to each element in the input sequence and returns a new sequence with the results.
func Map2 ¶
func Map2[InKey, InVal, OutKey, OutVal any](seq iter.Seq2[InKey, InVal], fun func(InKey, InVal) (OutKey, OutVal, bool)) iter.Seq2[OutKey, OutVal]
Map2 applies a function to each element in the input sequence and returns a new sequence with the results.
func Map21 ¶
Map21 returns a function that applies 'fun' to each element in 'seq' and yields the results based on the provided 'yield' function.
func MapKeys ¶
MapKeys returns a function that applies 'fun' to each element in 'seq' and yields the results with keys generated by 'fun'.
Types ¶
This section is empty.