redefines Sequence.asStream:create a stream of T.A stream contains mutable state, so it cannot be reused or sharedbetween threads.Default implementation uses asList. Heirs must redefine at leastone of asList or asStream.
redefines stream.hasNext:does this stream have one more element?
redefines stream.next:the next element in this stream