comparison website/src/manual.html.luan @ 1100:ad6b3b9fef40

add Table.is_empty() and Table.size()
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 21 May 2017 16:12:22 -0600
parents a26fbde7ee28
children 1f9d34a6f308
comparison
equal deleted inserted replaced
1099:a5406f076726 1100:ad6b3b9fef40
2734 shifting up the elements 2734 shifting up the elements
2735 <code>list[pos], list[pos+1], &middot;&middot;&middot;, list[#list]</code>. 2735 <code>list[pos], list[pos+1], &middot;&middot;&middot;, list[#list]</code>.
2736 2736
2737 2737
2738 2738
2739 <h4 heading><a name="Table.is_empty" href="#Table.is_empty"><code>Table.is_empty (tbl)</code></a></h4>
2740
2741
2742
2739 <h4 heading><a name="Table.pack" href="#Table.pack"><code>Table.pack (&middot;&middot;&middot;)</code></a></h4> 2743 <h4 heading><a name="Table.pack" href="#Table.pack"><code>Table.pack (&middot;&middot;&middot;)</code></a></h4>
2740 2744
2741 <p> 2745 <p>
2742 Returns a new table with all parameters stored into keys 1, 2, etc. 2746 Returns a new table with all parameters stored into keys 1, 2, etc.
2743 and with a field "<code>n</code>" with the total number of parameters. 2747 and with a field "<code>n</code>" with the total number of parameters.
2758 and erases element <code>list[#list]</code>; 2762 and erases element <code>list[#list]</code>;
2759 The index <code>pos</code> can also be 0 when <code>#list</code> is 0, 2763 The index <code>pos</code> can also be 0 when <code>#list</code> is 0,
2760 or <code>#list + 1</code>; 2764 or <code>#list + 1</code>;
2761 in those cases, the function erases the element <code>list[pos]</code>. 2765 in those cases, the function erases the element <code>list[pos]</code>.
2762 2766
2767
2768
2769 <h4 heading><a name="Table.size" href="#Table.size"><code>Table.size (tbl)</code></a></h4>
2763 2770
2764 2771
2765 2772
2766 <h4 heading><a name="Table.sort" href="#Table.sort"><code>Table.sort (list [, comp])</code></a></h4> 2773 <h4 heading><a name="Table.sort" href="#Table.sort"><code>Table.sort (list [, comp])</code></a></h4>
2767 2774