From a4bd73ebf18effeddb5a720a20cb81ec446d8cf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 17 Dec 2018 22:29:26 +0800 Subject: =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/locale/en-US/libs/lua53/table.lni | 37 +++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) (limited to 'server/locale/en-US/libs') diff --git a/server/locale/en-US/libs/lua53/table.lni b/server/locale/en-US/libs/lua53/table.lni index f1098fda..234be1ae 100644 --- a/server/locale/en-US/libs/lua53/table.lni +++ b/server/locale/en-US/libs/lua53/table.lni @@ -1 +1,36 @@ -[table] +[concat] +description = [[ +-------- +```lua +return list[i]..sep..list[i+1] ··· sep..list[j] +``` +]] + +[insert] +description = 'Inserts element value at position `pos` in list.' + +[move] +description = [[ +Moves elements from table `a1` to table `a2`. +```lua +a2[t],··· = a1[f],···,a1[e] +return a2 +``` +]] + +[pack] +description = 'Returns a new table with all arguments stored into keys `1, 2, etc`. and with a field `n` with the total number of arguments.' + +[remove] +description = 'Removes from `list` the element at position `pos`, returning the value of the removed element.' + +[sort] +description = 'Sorts list elements in a given order, **in-place**, from `list[1]` to `list[#list]`.' + +[unpack] +description = [[ +------- +```lua +return list[i], list[i+1], ···, list[j] +``` +]] -- cgit v1.2.3