Re-render icons fuction

It is possible to repeat ‘Re-render’ => ‘this icon’ function in Lua?

It’s probably better to post this here, the people there will be much more useful.