| @@ -33,7 +33,7 @@ Freely available under the terms of the · 32 unmodified lines |
| 33 | 33 | <!-- ====================================================================== --> |
| 34 | 34 | <p> |
| 35 | 35 | |
| 36 | | −<!-- $Id: manual.of,v 1.101 2013/02/15 12:33:36 roberto Exp $ --> |
| 36 | +<!-- $Id: manual.of,v 1.102 2013/03/07 18:25:28 roberto Exp $ --> |
| 37 | 37 | |
| 38 | 38 | |
| 39 | 39 | |
| @@ -8412,10 +8412,17 @@ Note that the resulting table may not be a sequence. · 8372 unmodified lines |
| 8412 | 8412 | |
| 8413 | 8413 | <p> |
| 8414 | 8414 | Removes from <code>list</code> the element at position <code>pos</code>, |
| 8415 | | −shifting down the elements |
| 8415 | +returning the value of the removed element. |
| 8416 | +When <code>pos</code> is an integer between 1 and <code>#list</code>, |
| 8417 | +it shifts down the elements |
| 8416 | 8418 | <code>list[pos+1], list[pos+2], ···, list[#list]</code> |
| 8417 | | −and erasing element <code>list[#list]</code>. |
| 8418 | | −Returns the value of the removed element. |
| 8419 | +and erases element <code>list[#list]</code>; |
| 8420 | +The index <code>pos</code> can also be 0, when <code>#list</code> is 0, |
| 8421 | +or <code>#list + 1</code>; |
| 8422 | +in those cases, the function erases the element <code>list[pos]</code>. |
| 8423 | + |
| 8424 | + |
| 8425 | +<p> |
| 8419 | 8426 | The default value for <code>pos</code> is <code>#list</code>, |
| 8420 | 8427 | so that a call <code>table.remove(t)</code> removes the last element |
| 8421 | 8428 | of list <code>t</code>. |
| @@ -10490,7 +10497,7 @@ Here is the complete syntax of Lua in extended BNF. · 2068 unmodified lines |
| 10490 | 10497 | <HR> |
| 10491 | 10498 | <SMALL CLASS="footer"> |
| 10492 | 10499 | Last update: |
| 10493 | | −Tue Feb 19 16:28:19 BRT 2013 |
| 10500 | +Thu Mar 7 15:36:34 BRT 2013 |
| 10494 | 10501 | </SMALL> |
| 10495 | 10502 | <!-- |
| 10496 | 10503 | Last change: revised for Lua 5.2.2 |