Created
February 5, 2016 13:45
-
-
Save szagoruyko/c1f3b5022c4c5a84fb03 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function nn.Module:replace(callback) | |
local out = callback(self) | |
if self.modules then | |
for i, module in ipairs(self.modules) do | |
self.modules[i] = module:replace(callback) | |
end | |
end | |
return out | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment