You could do for ((variable, value) <- envVars) instead