github.com/m4gshm/gollections@v0.0.10/stream/iface.go (about)

     1  package stream
     2  
     3  import "github.com/m4gshm/gollections/c"
     4  
     5  // Stream is collection or stream of elements in transformation state
     6  type Stream[T any] interface {
     7  	c.Iterator[T]
     8  	c.Collection[T]
     9  
    10  	HasAny(func(T) bool) bool
    11  }