abstract class Cosmo::Intrinsic::IFunction
- Cosmo::Intrinsic::IFunction
- Cosmo::Callable
- Reference
- Object
Overview
An intrinsic function
Direct Known Subclasses
- Cosmo::Intrinsic::Chars::Blank
- Cosmo::Intrinsic::Chars::Codepoint
- Cosmo::Intrinsic::Chars::Digit
- Cosmo::Intrinsic::Chars::Letter
- Cosmo::Intrinsic::Chars::Lower
- Cosmo::Intrinsic::Chars::Pad
- Cosmo::Intrinsic::Chars::Upper
- Cosmo::Intrinsic::Eval
- Cosmo::Intrinsic::FileLib::Append
- Cosmo::Intrinsic::FileLib::Delete
- Cosmo::Intrinsic::FileLib::Directory
- Cosmo::Intrinsic::FileLib::Empty
- Cosmo::Intrinsic::FileLib::Exists
- Cosmo::Intrinsic::FileLib::Read
- Cosmo::Intrinsic::FileLib::Write
- Cosmo::Intrinsic::Gets
- Cosmo::Intrinsic::HttpLib::Client::RequestFunction
- Cosmo::Intrinsic::HttpLib::Client::ResponseBodyFunctionBase
- Cosmo::Intrinsic::HttpLib::Server::ContextFunctionBase
- Cosmo::Intrinsic::HttpLib::Server::Listen
- Cosmo::Intrinsic::JSONLib::Deserialize
- Cosmo::Intrinsic::JSONLib::Serialize
- Cosmo::Intrinsic::MathLib::Acos
- Cosmo::Intrinsic::MathLib::Acosh
- Cosmo::Intrinsic::MathLib::Asin
- Cosmo::Intrinsic::MathLib::Asinh
- Cosmo::Intrinsic::MathLib::Atan
- Cosmo::Intrinsic::MathLib::Atan2
- Cosmo::Intrinsic::MathLib::Atanh
- Cosmo::Intrinsic::MathLib::Cos
- Cosmo::Intrinsic::MathLib::Cosh
- Cosmo::Intrinsic::MathLib::Exp
- Cosmo::Intrinsic::MathLib::Log
- Cosmo::Intrinsic::MathLib::Log10
- Cosmo::Intrinsic::MathLib::Log2
- Cosmo::Intrinsic::MathLib::Max
- Cosmo::Intrinsic::MathLib::Min
- Cosmo::Intrinsic::MathLib::Random
- Cosmo::Intrinsic::MathLib::Sin
- Cosmo::Intrinsic::MathLib::Sinh
- Cosmo::Intrinsic::MathLib::Tan
- Cosmo::Intrinsic::MathLib::Tanh
- Cosmo::Intrinsic::Numbers::Cbrt
- Cosmo::Intrinsic::Numbers::Ceil
- Cosmo::Intrinsic::Numbers::Floor
- Cosmo::Intrinsic::Numbers::ISqrt
- Cosmo::Intrinsic::Numbers::Round
- Cosmo::Intrinsic::Numbers::Sqrt
- Cosmo::Intrinsic::Numbers::ToBinary
- Cosmo::Intrinsic::Numbers::ToDecimal
- Cosmo::Intrinsic::Numbers::ToHex
- Cosmo::Intrinsic::Numbers::ToUtf16
- Cosmo::Intrinsic::Numbers::ZeroPad
- Cosmo::Intrinsic::Puts
- Cosmo::Intrinsic::Ranges::Begin
- Cosmo::Intrinsic::Ranges::End
- Cosmo::Intrinsic::Ranges::Sum
- Cosmo::Intrinsic::RecursionDepth
- Cosmo::Intrinsic::SocketLib::Server::ContextFunctionBase
- Cosmo::Intrinsic::SocketLib::Server::Listen
- Cosmo::Intrinsic::Strings::Alpha
- Cosmo::Intrinsic::Strings::AlphaNumeric
- Cosmo::Intrinsic::Strings::Blank
- Cosmo::Intrinsic::Strings::CamelCase
- Cosmo::Intrinsic::Strings::Capitalize
- Cosmo::Intrinsic::Strings::Chars
- Cosmo::Intrinsic::Strings::Empty
- Cosmo::Intrinsic::Strings::EndsWith
- Cosmo::Intrinsic::Strings::Includes
- Cosmo::Intrinsic::Strings::Index
- Cosmo::Intrinsic::Strings::LChop
- Cosmo::Intrinsic::Strings::Lower
- Cosmo::Intrinsic::Strings::LTrim
- Cosmo::Intrinsic::Strings::Numeric
- Cosmo::Intrinsic::Strings::Pad
- Cosmo::Intrinsic::Strings::PascalCase
- Cosmo::Intrinsic::Strings::RChop
- Cosmo::Intrinsic::Strings::Replace
- Cosmo::Intrinsic::Strings::Reverse
- Cosmo::Intrinsic::Strings::RIndex
- Cosmo::Intrinsic::Strings::RTrim
- Cosmo::Intrinsic::Strings::SnakeCase
- Cosmo::Intrinsic::Strings::Split
- Cosmo::Intrinsic::Strings::StartsWith
- Cosmo::Intrinsic::Strings::TitleCase
- Cosmo::Intrinsic::Strings::Trim
- Cosmo::Intrinsic::Strings::Upper
- Cosmo::Intrinsic::Strings::WithoutFirst
- Cosmo::Intrinsic::Strings::WithoutLast
- Cosmo::Intrinsic::Strings::ZeroPad
- Cosmo::Intrinsic::SystemLib::EnvLib::SetVar
- Cosmo::Intrinsic::SystemLib::EnvLib::Var
- Cosmo::Intrinsic::SystemLib::Exec
- Cosmo::Intrinsic::SystemLib::SystemTime
- Cosmo::Intrinsic::Table::Empty
- Cosmo::Intrinsic::Table::Has
- Cosmo::Intrinsic::Table::Invert
- Cosmo::Intrinsic::Table::Keys
- Cosmo::Intrinsic::Table::Values
- Cosmo::Intrinsic::Vector::Combine
- Cosmo::Intrinsic::Vector::Delete
- Cosmo::Intrinsic::Vector::DeleteAt
- Cosmo::Intrinsic::Vector::Filter
- Cosmo::Intrinsic::Vector::First
- Cosmo::Intrinsic::Vector::FirstNullable
- Cosmo::Intrinsic::Vector::Includes
- Cosmo::Intrinsic::Vector::Index
- Cosmo::Intrinsic::Vector::IsEmpty
- Cosmo::Intrinsic::Vector::Join
- Cosmo::Intrinsic::Vector::Last
- Cosmo::Intrinsic::Vector::LastNullable
- Cosmo::Intrinsic::Vector::Map
- Cosmo::Intrinsic::Vector::Pop
- Cosmo::Intrinsic::Vector::Push
- Cosmo::Intrinsic::Vector::Reverse
- Cosmo::Intrinsic::Vector::RIndex
- Cosmo::Intrinsic::Vector::Shift
- Cosmo::Intrinsic::Vector::Sort
- Cosmo::Intrinsic::Vector::Sum
- Cosmo::Intrinsic::WebhookLib::Send
Defined in:
cosmo/runtime/intrinsic.crConstructors
Instance Method Summary
-
#call(args : Array(ValueType)) : ValueType
Executes the function body, passing in
args
-
#intrinsic? : Bool
Whether or not this function is intrinsic
-
#to_s : String
Returns a nicely readable and concise string representation of this object, typically intended for users.
-
#token(name : String) : Token
Helper function to generate a fake token for logging
Instance methods inherited from class Cosmo::Callable
arity : Range(UInt32, UInt32)
arity,
call(args : Array(ValueType)) : ValueType
call,
expand_args(args : Array(ValueType)) : Array(ValueType)
expand_args,
intrinsic? : Bool
intrinsic?,
to_s : String
to_s
Constructor Detail
Instance Method Detail
Description copied from class Cosmo::Callable
Executes the function body, passing in args
def intrinsic? : Bool
#
Description copied from class Cosmo::Callable
Whether or not this function is intrinsic
def to_s : String
#
Description copied from class Object
Returns a nicely readable and concise string representation of this object, typically intended for users.
This method should usually not be overridden. It delegates to
#to_s(IO)
which can be overridden for custom implementations.
Also see #inspect
.
Helper function to generate a fake token for logging