class

Cosmo::Intrinsic::Numbers::Sqrt

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

Returns the square root of the number

Constructors

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

Instance methods

arity

The amount of parameters this function will accept

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

Executes the function body, passing in args

Source