Constant function
for-loop tidying