mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 18:58:30 +00:00
feat: const abs/all/any/len/map
This commit is contained in:
parent
f0e47201bf
commit
d59a4e82d3
5 changed files with 214 additions and 8 deletions
|
@ -2089,8 +2089,10 @@ impl Context {
|
|||
record.register_py_builtin_const(
|
||||
FUNC_AS_DICT,
|
||||
Visibility::BUILTIN_PUBLIC,
|
||||
None,
|
||||
as_dict,
|
||||
Some("_asdict"),
|
||||
None,
|
||||
);
|
||||
let mut record_meta_type = Self::builtin_mono_class(RECORD_META_TYPE, 2);
|
||||
record_meta_type.register_superclass(mono(RECORD), &record);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue