class

Cosmo::Intrinsic::Table::Invert

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

Swaps the table's keys and values

Constructors

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

Instance methods

arity

The amount of parameters this function will accept

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

Executes the function body, passing in args

Source