R: how does a foreach loop find a function that should be invoked? R: how does a foreach loop find a function that should be invoked? r r