Jump to content

Revision history o "Module:Road data/util"

For ony version leetit ablo, click on its date tae view it.

(cur) = difference from current version, (prev) = difference frae precedin version,  s = smaa eedit, → = section eedit, ← = automatic eedit summary

29 Julie 2023

  • noulast 00:0800:08, 29 Julie 2023 AmaryllisGardener Collogue contribs 5,808 bytes +5,808 Cræftit page wi "local util = {} local insert = table.insert local concat = table.concat local format = mw.ustring.format --- -- Add all entries in `arr` into `target`. -- An error is raised if `overwrite` is not true -- and any key in `arr` is already in `target`. function util.addAll(target, arr, overwrite) if type(target) ~= "table" then error("target is not a table") end for key,value in pairs(arr) do if overwrite or target[key] == nil then target[key] = value else er..."