// HasNext returns true if stream has next value.
HasNext returns true if stream has next value.
// HasNext returns true if stream has next value .
func (s *Stream[T]) HasNext() bool {
	select {
	case <-s.state.done:
		return true
	default:
		return false
	}
}
func ( s * Stream [ T ] ) HasNext ( ) bool { select { case <- s . state . done : return true default : return false } }
HasNext returns true if stream has next value.
HasNext returns true if stream has next value .