Changes

no edit summary
Line 2: Line 2:  
-- more generic interface and compositions (filtering, grouping, mapping, sorting, etc.)
 
-- more generic interface and compositions (filtering, grouping, mapping, sorting, etc.)
 
-- prevent clients from infinite loops
 
-- prevent clients from infinite loops
 +
 +
local U = require('Module:Utils')
 +
local EquipmentData = require('Module:EquipmentData')
 +
local CollectionEquipment = require('Module:Collection/Equipment')
    
local Iterator = {}
 
local Iterator = {}
Line 32: Line 36:  
     if predKey then
 
     if predKey then
 
         pred = function(e)
 
         pred = function(e)
            local EquipmentData = require('Module:EquipmentData')
   
             local obj = EquipmentData(e)
 
             local obj = EquipmentData(e)
 
             return obj[predKey](obj)
 
             return obj[predKey](obj)
 
         end
 
         end
 
     end
 
     end
     local collection = require('Module:Collection/Equipment')
+
     local collection = U.copy(CollectionEquipment)
 
     local sortKey = stringKey('sort', context, n)
 
     local sortKey = stringKey('sort', context, n)
 
     if sortKey then
 
     if sortKey then
cssedit, gkautomate
7,064

edits