export scalar 'iterate' function