Community
Participate
Working Groups
The current set of iterator functions (select, reject, exists, etc.) returns lists instead of iterators - for some of the operations that is not the most optimal (producing a very long list when the first element satisfies the outer function. Seen from the outermost perspective, user would probably not want the result to be an iterator. Several solutions are possible (like auto conversion of an iterator to a list if assigning the result to a List variable, or sending it as a parameter to a function that takes a list. With smart typecasting - i.e. List(anIterator) could also be a solution resulting in a List<E> from List(anIterator<E>).