Review every terminal operations and some intermediate:
collect
collect
array
list
set
join
into
fetch
fetch
prefetch
cache
group
size
isEmpty
fold
min
max
single
first
last
at
distinct
sort
reverse
each
onEach
matchAny
matchAll
matchNone
Review every terminal operations and some intermediate:
* collect
* collect
* array
* list
* set
* join
* into
* fetch
* fetch
* prefetch
* cache
* group
* size
* isEmpty
* fold
* min
* max
* single
* first
* last
* at
* distinct
* sort
* reverse
* each
* onEach
* matchAny
* matchAll
* matchNone
Optimize operations like collect, fold etc which do not have to create iterators, stream etc
Review every terminal operations and some intermediate:
optimized
TODO: test everything. Some #wileEach does not work correctly.