class

Cosmo::Intrinsic::Ranges::Sum

Inherits Cosmo::Intrinsic::IFunction < Cosmo::Callable < Reference < Object

Returns the sum of all numbers in the range

Constructors

new(interpreter : Interpreter, _self : RangeType, token : Token)
Source

Instance methods

arity

The amount of parameters this function will accept

Source
call(args : Array(ValueType)) : I

Executes the function body, passing in args

Source