• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Module:Core

From Kancolle Wiki
Revision as of 17:58, 27 November 2015 by がか (talk | contribs) (Created page with " local Utils = {} function Utils._apply(fn, args) return fn(unpack(args)) end function Utils._method(module, mth, ...) local module = require("Module:" .. module) return ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Documentation for this module may be created at Module:Core/doc

local Utils = {}

function Utils._apply(fn, args)
	return fn(unpack(args))
end

function Utils._method(module, mth, ...)
	local module = require("Module:" .. module)
	return module[mth](module, ...)
end

function Utils.method(frame)
	return Utils._apply(Utils._method, frame.args)
end

return Utils