Versions in this module Expand all Collapse all v2 v2.0.0 Mar 25, 2022 Changes in this version + func ToMap(i Iterable[K, V]) map[K]V + func ToSlice(i Iterable[int, V]) []V + type Generator struct + func (g *Generator[K, V]) HasNext() bool + func (g *Generator[K, V]) Next() (key K, value V, exist bool) + func (g *Generator[K, V]) Reset() + type Iterable interface + HasNext func() bool + Next func() (K, V, bool) + Reset func() + func FromMap(inner map[K]V) Iterable[K, V] + func FromMapWithKeyList(inner map[K]V, keys []K) Iterable[K, V] + func FromSlice(inner []V) Iterable[int, V] + func Map(i Iterable[K, V], fn func(K, V) (NK, NV)) Iterable[NK, NV] + func NewGenerator(key K, value V, inner func(K, V) (K, V)) Iterable[K, V] + func Of(values ...V) Iterable[int, V] + type Slice struct + func (s *Slice[V]) HasNext() bool + func (s *Slice[V]) Next() (key int, value V, exist bool) + func (s *Slice[V]) Reset() + type Table struct + func (m *Table[K, V]) HasNext() bool + func (m *Table[K, V]) Next() (key K, value V, exist bool) + func (m *Table[K, V]) Reset() Other modules containing this package github.com/snowmerak/generics-for-go