Описание: оператор множественного выбора switch. Код: function switch(key) return function(tab) local current = tab[key] or tab['default'] if type(current) == 'function' then current() end end end Пример: switch(2) { function() print'hello' end, function() print'bye'...
blast.hk