http://dpaste.dzfl.pl/762c83c7fe30
If the function is overloaded, that won't work. In such cases, static foreach might be helpful. Here's code from the cycle "I have a dream":
http://dpaste.dzfl.pl/82a70c809210I'm trying to collect together motivating examples and to figure out the semantics of the feature.
Andrei