# len var (list)

Source: https://ref.dm-lang.org/list/var/len

This is the length of the list. Increasing it expands the list, initializing all new elements with null. Decreasing it contracts the list, making old elements inaccessible.

### See also
- [+ operator](https://ref.dm-lang.org/operator/plus.md)
- [+= operator](https://ref.dm-lang.org/operator/plusequals.md)
- [- operator](https://ref.dm-lang.org/operator/minus.md)
- [-= operator](https://ref.dm-lang.org/operator/minusequals.md)
