Lines Matching refs:item
275 o "l[k]" returns the k-th item in "l"; "l" is one-indexed, as in Lua.
276 To modify the k-th item, simply do "l[k] = newitem"; in
277 particular, "l[k] = nil" removes the k-th item from "l". Item can
280 o "table.insert(l, newitem)" inserts an item at the end of the list.
282 o "table.insert(l, position, newitem)" inserts an item at the
285 o "table.remove(l, position)" removes an item at the specified
291 o "l:add(item)" appends "item" to the end of "l".
292 o "l:insert(item[, pos])" inserts "item" at (optional)
297 :let l = [1, 'item']
302 :lua l[1] = nil -- remove first item
309 :lua for item in l() do print(item) end
348 o "b[k]" returns the k-th item in "b"; "b" is zero-indexed, as in Vim.
349 To modify the k-th item, simply do "b[k] = number"; in particular,