Iterable CardList
Hi. I think that if CardList will be iterable, it be more usefull, because we can use easy-to-use 'foreach' instead of complex'for (...)'.
Patch attached.
Patch attached.
- Code: Select all
3c3
< public class CardList
---
> public class CardList implements Iterable<Card>
208a209,213
>
> @Override
> public Iterator<Card> iterator() {
> return list.iterator();
> }