Module:Array: Revision history

Jump to navigation Jump to search
Diff selection: mark the radio boxes of the versions to compare or click on a revision date to view it. (cur) = difference from current version, (prev) = difference from preceding version,  m = minor edit, → = section edit

11 October 2024

  • curprev 21:5821:58, 11 October 2024Alex talk contribs 30,679 bytes +30,679 Created page with "local libraryUtil = require('libraryUtil') local checkType = libraryUtil.checkType local checkTypeMulti = libraryUtil.checkTypeMulti ---Returns the length of the array but it also works on proxy arrays ---@param arr any[] ---@return integer local function len(arr) local l = #arr if l == 0 then if arr[1] ~= nil then -- Exponential search to find length of proxy table local low = 1 local high = 1 local ceil = math.ceil while arr[high] ~= nil do high..."