Methods

sumΒΆ

sum(something:Any)

Calculate sum of the elements
Source: stdlib.ngs:1242

Example

[1,2,3].sum()  # 6