Изменения

Перейти к навигации Перейти к поиску
memoize recursive
Строка 109: Строка 109:  
end)
 
end)
   −
local merge_nodes = memoize (function (node1, node2)
+
local function merge_nodes (node1, node2)
 
if type (node1) == 'string' and type (node2) == 'string' then
 
if type (node1) == 'string' and type (node2) == 'string' then
 
return node1 .. ' ' .. node2
 
return node1 .. ' ' .. node2
Строка 122: Строка 122:  
-- block:
 
-- block:
 
return node1, node2
 
return node1, node2
end)
+
end
 +
merge_nodes = memoize (merge_nodes)
    
-- Allowed CSS attributes:
 
-- Allowed CSS attributes:

Реклама:

Навигация