erl_internal(3erl)
๐ธ 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
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4 ยท Apache-2.0
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4.8 ยท Apache-2.0
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms