Length: Difference between revisions
Content added Content deleted
No edit summary Tags: Reverted Visual edit: Switched |
("Better category ordering, add redirects to categories, fix pseudo-adverb categories") |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{primitive}} |
{{primitive|#x}} |
||
{| class=wikitable style="width:40%;float:right" |
|||
|+ Caption text |
|||
|- |
|||
| Example || Example |
|||
|- |
|||
| Example || Example |
|||
|- |
|||
| Example || Example |
|||
|- |
|||
| Example || Example |
|||
|} |
|||
The '''length''', a.k.a. '''count''', of a list is the number of its items. The length of a table is the number of its rows. The length of a dictionary is the length of its key list or, equivalently, of its value list. By convention, atoms have length 1. |
The '''length''', a.k.a. '''count''', of a list is the number of its items. The length of a table is the number of its rows. The length of a dictionary is the length of its key list or, equivalently, of its value list. By convention, atoms have length 1. |
||
[[Category:Verbs]] |
|||
[[Category:Operator verbs]] |
|||
[[Category:Primitives]] |
Latest revision as of 06:41, 9 July 2022
Length
#x
The length, a.k.a. count, of a list is the number of its items. The length of a table is the number of its rows. The length of a dictionary is the length of its key list or, equivalently, of its value list. By convention, atoms have length 1.