erl_internal(3erl)

๐Ÿ“ฆ
version 25.3.2.8 ยท 5 versions
, in ubuntu noble

๐ŸŒธ NAME ๐ŸŒธ

okay so bestie, this is erl_internal(3erl) โ€” the Erlang module definition for erl_internal โ€” and the name literally means Internal Erlang definitions. ๐Ÿ’…


โœจ DESCRIPTION โœจ

This module is where Erlang defines its BIFs, guard tests, and operators. No cap, itโ€™s only of interest to programmers who manipulate Erlang code โ€” like, code-manipulation main character energy ๐Ÿ’–


๐Ÿ’– EXPORTS ๐Ÿ’–

okay bestie, hereโ€™s the whole roster, no skips, no cap ๐Ÿซถ

๐ŸŽ€ add_predefined_functions(Forms) -> UpdatedForms

Types:

Forms = [erl_parse:abstract_form() | erl_parse:form_info()]
UpdatedForms =
    [erl_parse:abstract_form() | erl_parse:form_info()]

Adds to Forms the code for the standard pre-defined functions โ€” such as module_info/0 โ€” that are to be included in every module. Then it gives you back UpdatedForms, slay โœจ

๐Ÿงฎ arith_op(OpName, Arity) -> boolean()

Types:

OpName = atom()
Arity = arity()

Returns true if OpName/Arity is an arithmetic operator, otherwise false. Simple vibe check, no drama ๐Ÿ’œ

๐Ÿ”ฅ bif(Name, Arity) -> boolean()

Types:

Name = atom()
Arity = arity()

Returns true if Name/Arity is an Erlang BIF that is automatically recognized by the compiler, otherwise false. The compiler already knows this one, iykyk ๐Ÿ‘‘

๐Ÿฆ‹ bool_op(OpName, Arity) -> boolean()

Types:

OpName = atom()
Arity = arity()

Returns true if OpName/Arity is a Boolean operator, otherwise false. Boolean bestie behavior ๐ŸŒˆ

โญ comp_op(OpName, Arity) -> boolean()

Types:

OpName = atom()
Arity = arity()

Returns true if OpName/Arity is a comparison operator, otherwise false. Comparing things is literally the whole point ๐ŸŽ€

๐Ÿ›ก๏ธ guard_bif(Name, Arity) -> boolean()

Types:

Name = atom()
Arity = arity()

Returns true if Name/Arity is an Erlang BIF that is allowed in guards, otherwise false. Guard-duty icon behavior ๐Ÿซถ

๐Ÿ“ list_op(OpName, Arity) -> boolean()

Types:

OpName = atom()
Arity = arity()

Returns true if OpName/Arity is a list operator, otherwise false. List operator? Obsessed ๐Ÿ’–

๐Ÿงš op_type(OpName, Arity) -> Type

Types:

OpName = atom()
Arity = arity()
Type = arith | bool | comp | list | send

Returns the Type of operator that OpName/Arity belongs to. If itโ€™s not an operator at all, it generates a function_clause error โ€” no cap, thatโ€™s the deal ๐Ÿ˜ญ

๐Ÿ’Œ send_op(OpName, Arity) -> boolean()

Types:

OpName = atom()
Arity = arity()

Returns true if OpName/Arity is a send operator, otherwise false. Sending it, periodt ๐Ÿ’…

๐ŸŒธ type_test(Name, Arity) -> boolean()

Types:

Name = atom()
Arity = arity()

Returns true if Name/Arity is a valid Erlang type test, otherwise false. Valid type test? We love a clean vibe check โœจ


k bye bestie ๐Ÿซถ โ€” source/version: Ericsson AB, stdlib 4.3.1.3; page: erl_internal(3erl); date: the original footer didnโ€™t print one, so Iโ€™m not making one up ๐Ÿ’œ

๐Ÿ“ฆ where this page comes from