foreach.h: add example of use in comments