Module:Array: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

1 November 2024

31 October 2024

  • curprev 22:3522:35, 31 October 2024Selfice talk contribs 1,967 bytes +1,967 创建页面,内容为“local p = {} local function stringToArray(str, separator, mapper) local arr = {} local i = 1 for v in mw.text.gsplit(str, separator) do arr[i] = mapper(v) i = i + 1 end return arr end local function tableToArray(tbl, offset, mapper) local arr = {} for k, v in pairs(tbl) do if type(k) == 'number' and k > offset then arr[k - offset] = mapper(v) end end return arr end function p.main() local args = require('Module:ProcessArgs').merge() ret…”