Number of items in the collection.

``````assert [10,20,30].length == 3
assert [20..30[.length   == 10``````

Property definitions

core \$ Collection :: length
```	# Number of items in the collection.
#
#     assert [10,20,30].length == 3
#     assert [20..30[.length   == 10
fun length: Int
do
var nb = 0
for i in self do nb += 1
return nb
end
```
lib/core/collection/abstract_collection.nit:77,2--86,4
core \$ Range :: length
```	#     assert [1..10].length		== 10
#     assert [1..10[.length		== 9
#     assert [1..1].length		== 1
#     assert [1..-10].length	== 0
redef fun length
do
if is_empty then return 0
var nb = first.distance(after)
if nb > 0 then
return nb
else
return 0
end
end
```
lib/core/collection/range.nit:61,2--74,4
```	redef fun length
do
mutex.lock
var r = real_collection.length
mutex.unlock
return r
end
```
cartesian \$ Cartesian :: length
```	redef fun length do return ce.length * cf.length
```
lib/cartesian/cartesian.nit:116,2--49
combinations \$ CartesianCollection :: length
```	redef fun length
do
var res = 1
for c in collections do res = res * c.length
return res
end
```
lib/combinations/combinations.nit:108,2--113,4
combinations \$ CombinationCollection :: length
```	redef fun length
do
var n = collection.length
if are_unique then
if repeat > n then
return 0
end
if are_sorted then
return n.factorial / repeat.factorial
else
return n.factorial / (n-repeat).factorial
end
else
if are_sorted then
return (n+repeat-1).factorial / repeat.factorial / (n-1).factorial
else
return n ** repeat
end
end
end
```
lib/combinations/combinations.nit:287,2--306,4
core \$ Ref :: length
```	redef fun length do return 1
```
lib/core/collection/abstract_collection.nit:362,2--29
```	redef var length = 0
```
lib/core/collection/array.nit:26,2--21
core \$ ArrayMapKeys :: length
```	redef fun length do return self.map.length
```
lib/core/collection/array.nit:811,2--43
core \$ ArrayMapValues :: length
```	redef fun length do return self.map.length
```
lib/core/collection/array.nit:828,2--43
core \$ HashMapKeys :: length
```	redef fun length do return self.map.length
```
lib/core/collection/hash_collection.nit:295,2--43
core \$ HashMapValues :: length
```	redef fun length do return self.map.length
```
lib/core/collection/hash_collection.nit:344,2--43
core \$ StringCharView :: length
```	redef fun length do return target.length
```
lib/core/text/abstract_text.nit:1456,2--41
core \$ StringByteView :: length
```	redef fun length do return target.byte_length
```
lib/core/text/abstract_text.nit:1474,2--46
nitcc_runtime \$ NProdChildren :: length
```	redef fun length do return prod.number_of_children
```
lib/nitcc_runtime/nitcc_runtime.nit:573,2--51
ordered_tree \$ OrderedTree :: length
```	redef fun length do return parents.length
```
lib/ordered_tree/ordered_tree.nit:78,2--42
core \$ ProxyQueue :: length
```	redef fun length do return seq.length
```
lib/core/queue.nit:144,2--38
core \$ RandQueue :: length
```	redef fun length do return seq.length
```
lib/core/queue.nit:202,2--38
core \$ MinHeap :: length
```	redef fun length do return items.length
```
lib/core/queue.nit:239,2--40
java \$ JavaIntArray :: length
```	redef fun length in "Java" `{ return self.length; `}
```
lib/java/collections.nit:60,2--53
java \$ JavaShortArray :: length
```	redef fun length in "Java" `{ return self.length; `}
```
lib/java/collections.nit:74,2--53
java \$ JavaLongArray :: length
```	redef fun length in "Java" `{ return self.length; `}
```
lib/java/collections.nit:88,2--53
java \$ JavaFloatArray :: length
```	redef fun length in "Java" `{ return self.length; `}
```
lib/java/collections.nit:105,2--53
```	redef fun length in "Java" `{ return self.length; `}
```
lib/java/collections.nit:119,2--53
java \$ JavaArray :: length
```	redef fun length in "Java" `{ return self.length; `}
```
lib/java/collections.nit:133,2--53
java \$ JavaBoolArray :: length
```	redef fun length in "Java" `{ return self.length; `}
```
lib/java/collections.nit:147,2--53
java \$ JavaByteArray :: length
```	redef fun length in "Java" `{ return self.length; `}
```
lib/java/collections.nit:161,2--53
java \$ JavaCharArray :: length
```	redef fun length in "Java" `{ return self.length; `}
```
lib/java/collections.nit:175,2--53
neo4j \$ SequentialNodeCollection :: length
```	redef var length = 0
```
lib/neo4j/graph/sequential_id.nit:55,2--21
core \$ ArraySet :: length
```	redef fun length do return _array.length
```
lib/core/collection/array.nit:606,2--41
core \$ List :: length
```	# O(1)
redef var length = 0
```
lib/core/collection/list.nit:45,2--46,21
core \$ CircularArray :: length
```	redef var length = 0
```
lib/core/collection/circular_array.nit:62,2--21
more_collections \$ UnrolledList :: length
```	redef var length = 0
```
lib/more_collections/more_collections.nit:373,2--21
dom \$ XMLEntities :: length
```	redef fun length do return entities.length
```
lib/dom/xml_entities.nit:66,2--43
dummy_array \$ DummyArray :: length
```	redef var length: Int
```
lib/dummy_array/dummy_array.nit:18,2--22
core \$ HashSet :: length
```	redef fun length do return _the_length
```
lib/core/collection/hash_collection.nit:432,2--39
core \$ Bytes :: length
```	# Number of bytes in the array
redef var length
```
lib/core/bytes.nit:245,2--246,17
```	redef fun length