class

Cosmo::Intrinsic::Vector::DeleteAt

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

Deletes the value at index i, or i + offset if one is provided. Returns the given vector

Constructors

new(interpreter : Interpreter, _self : Array(ValueType), token : Token)
Source

Instance methods

arity

The amount of parameters this function will accept

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

uint i: The index of the value to be deleted uint? offset: The number added to the index

Source