In hindsight, a simpler solution (with static import of custom toIterable method) would be:
final List<String> zips2 = new ArrayList<String>(); for (Person p : people) { for (Address a : toIterable(p.addressOption)) { for (String z : toIterable(a.zipOption)) { zips2.add(z); } } } -- You received this message because you are subscribed to the Google Groups "Java Posse" group. To view this discussion on the web visit https://groups.google.com/d/msg/javaposse/-/o8-d6a8sKRIJ. To post to this group, send email to javaposse@googlegroups.com. To unsubscribe from this group, send email to javaposse+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/javaposse?hl=en.