Documentation ¶
Index ¶
- type Chan
- type Heap
- type IndexAccessible
- type JsonDecoder
- type ListAll
- type ListBackward
- type ListElementAll
- type ListElementBackward
- type MapAll
- type MapSorted
- type MapSortedFunc
- type Range
- type Repeatable
- type Repeatable2
- type RepeatableFunc
- type RepeatableFunc2
- type RingAll
- type RingBackward
- type Scanner
- type SliceAll
- type SliceBackward
- type SqlRows
- type SyncMap
- type XmlDecoder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IndexAccessible ¶ added in v0.0.6
type JsonDecoder ¶ added in v0.0.6
JsonDecoder adds IntoIter2 to *json.Decoder.
type ListBackward ¶
ListBackward adds Iter method to *list.List. Iter returns an iterator that traverses list backward.
func (ListBackward[T]) Iter ¶
func (l ListBackward[T]) Iter() iter.Seq[T]
type ListElementAll ¶ added in v0.0.5
ListElementAll adds Iter method to *list.Element.
func (ListElementAll[T]) Iter ¶ added in v0.0.5
func (l ListElementAll[T]) Iter() iter.Seq[T]
type ListElementBackward ¶ added in v0.0.4
ListElementBackward adds Iter method to *list.Element. Iter returns an iterator that traverses list backward.
func (ListElementBackward[T]) Iter ¶ added in v0.0.4
func (l ListElementBackward[T]) Iter() iter.Seq[T]
type MapAll ¶
type MapAll[K comparable, V any] map[K]V
MapAll adds Iter2 method to map[K]V that merely calling maps.All.
type MapSorted ¶
MapSorted adds Iter2 to map[K]V where K is basic ordered type. Iter2 takes snapshot of keys and sort it in ascending order, then returns an iterator over pairs of the keys and values that correspond to each key.
type MapSortedFunc ¶
type MapSortedFunc[M ~map[K]V, K comparable, V any] struct { M M Cmp func(K, K) int }
MapSortedFunc adds Iter2 to map[K]V. Iter2 takes snapshot of keys and sort it using the comparison function, then returns an iterator over pairs of the keys and values that correspond to each key.
func (MapSortedFunc[M, K, V]) Iter2 ¶
func (m MapSortedFunc[M, K, V]) Iter2() iter.Seq2[K, V]
type Repeatable ¶
Repeatable generates an iterator that generates V N times.
func (Repeatable[V]) Iter ¶
func (r Repeatable[V]) Iter() iter.Seq[V]
type Repeatable2 ¶
Repeatable2 generates an iterator that generates pairs of K and V N times.
func (Repeatable2[K, V]) Iter2 ¶
func (r Repeatable2[K, V]) Iter2() iter.Seq2[K, V]
type RepeatableFunc ¶ added in v0.0.3
RepeatableFunc generates an iterator that generates value returned from FnV N times.
func (RepeatableFunc[V]) Iter ¶ added in v0.0.3
func (r RepeatableFunc[V]) Iter() iter.Seq[V]
type RepeatableFunc2 ¶ added in v0.0.3
RepeatableFunc2 generates an iterator that generates pairs of value that FnK and FnV return N times.
func (RepeatableFunc2[K, V]) Iter2 ¶ added in v0.0.3
func (r RepeatableFunc2[K, V]) Iter2() iter.Seq2[K, V]
type RingBackward ¶
RingBackward adds Iter method to *ring.Ring. Iter returns an iterator that traverses ring backward.
func (RingBackward[T]) Iter ¶
func (r RingBackward[T]) Iter() iter.Seq[T]
type SliceAll ¶
type SliceAll[E any] []E
SliceAll adds Iter and Iter2 methods to slice of any element E. They merely call slices.Values, slices.All respectively.
type SliceBackward ¶
type SliceBackward[E any] []E
SliceBackward adds Iter and Iter2 methods to slice of any element E. They return iterators over []E traversing them backward with descending indices.
func (SliceBackward[E]) Iter ¶
func (s SliceBackward[E]) Iter() iter.Seq[E]
type SqlRows ¶ added in v0.0.9
SqlRows adds IntoIter2 to *sql.Rows. For detailed behavior, see hiter.SqlRows.
type SyncMap ¶
type SyncMap[K comparable, V any] struct { *sync.Map }
SyncMap adds Iter2 method that merely calls sync.Map.Range.
type XmlDecoder ¶ added in v0.0.6
XmlDecoder adds IntoIter2 to *xml.Decoder.