class

Cosmo::Intrinsic::Table::Has

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

Returns whether or not key has a value associated with it

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)) : Bool

K key: The key to search for

Source