public interface Spliterator
GDK enhancements for Spliterator.
<T>
public Stream<T>
stream()
Returns a sequential Stream with the specified element(s) as its source.
assert [].spliterator().stream().toList().isEmpty() assert ['one', 'two'].spliterator().stream().toList() == ['one', 'two']