You can use the `collection.iterator()` for that, ...
# getting-started
j
You can use the
collection.iterator()
for that, if that's what you mean. It's just like Java. However, if you want to make a copy of the list that filters out elements, you can also take a look at
collection.filter{<condition>}