Pular para o conteúdo

Funções embutidas

As 225 funções e constantes globais, disponíveis sem import.

São 225 funções e constantes disponíveis sem nenhum adopt. Para o que está além disso, veja a Biblioteca Arcane.

Tipos e conversão (10)#

bool cast cluster float int len range str type vault

Texto (54)#

capitalize center char char_at concat count_str decode encode endswith expandtabs find format includes index_of isalnum isalpha isascii isdigit islower isnumeric isspace istitle isupper join last_index_of lines ljust lower lstrip ord pad_end pad_start partition removeprefix removesuffix repeat replace reverse_str rfind rjust rpartition rstrip split splitlines startswith strip substring swapcase template title trim upper words zfill

Expressões regulares (8)#

regex_count regex_extract regex_findall regex_match regex_search regex_split regex_sub regex_test

Matemática (43)#

abs acos asin atan atan2 cbrt ceil clamp comb cos degrees exp factorial floor gcd hypot is_finite is_inf is_nan lcm lerp log log10 log2 max mean median min mode percentile perm pow radians reversed round sign sin sorted sqrt stdev sum tan variance

Coleções (29)#

append chunk contains count deep_copy drop enumerate first flatten frequencies index insert interleave invert_dict items keys last merge_dicts omit pick pop remove rotate slice take unique unzip values zip

Funcional (21)#

complement compose constantly curry every filter find_first find_last flat_map identity map memoize none_of once partial pipe_fn reduce scan some tap zip_with

Sistema e utilidades (27)#

accumulate base64_decode base64_encode chain choice combinations env_var exists freeze from_json hash hash_md5 hash_sha256 id permutations product randint random repeat_val sample shuffle sleep thaw time timestamp to_json uuid

Predicados e validação (15)#

assert_type coalesce default default_val is_boolean is_callable is_dict is_empty is_float is_integer is_list is_number is_string is_void validate

Introspecção (8)#

class_name get_fields get_methods get_mro get_parent has_field has_method instanceof

Constantes e outros (10)#

E EMPTY INF MAX_INT MIN_INT NAN NEWLINE PI TAB TAU