github.com/m4gshm/gollections@v0.0.10/kv/stream/iface.go (about) 1 // Package stream provides a stream implementation and helper functions 2 package stream 3 4 import ( 5 "github.com/m4gshm/gollections/kv" 6 ) 7 8 // Stream is map or key/value stream of elements in transformation state. 9 type Stream[K comparable, V any, M map[K]V | map[K][]V] interface { 10 kv.Iterator[K, V] 11 kv.Collection[K, V, M] 12 13 HasAny(func(K, V) bool) bool 14 }