foreach: use function