class

Cosmo::Intrinsic::Chars::Digit

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

Returns whether or not the given character is a digit

Constructors

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

Instance methods

arity

The amount of parameters this function will accept

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

Executes the function body, passing in args

Source