Fuzion Logo
flang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

asStream

🌌string.asCodepoints.asStream


redefines Sequence.asStream:
create a stream of T.

A stream contains mutable state, so it cannot be reused or shared
between threads.

Default implementation uses asList. Heirs must redefine at least
one of asList or asStream.


redefines stream.hasNext:
does this stream have one more element?


redefines stream.next:
the next element in this stream