feat: add format, help!

This commit is contained in:
Shunsuke Shibayama 2023-12-15 22:55:10 +09:00
parent 905a03d578
commit 868609f95a
4 changed files with 21 additions and 2 deletions

View file

@ -778,7 +778,14 @@ impl Context {
);
str_.register_builtin_erg_impl(
FUNC_FORMAT,
fn_met(Str, vec![], Some(kw(KW_ARGS, Obj)), vec![], None, Str),
fn_met(
Str,
vec![],
Some(kw(KW_ARGS, Obj)),
vec![],
Some(kw(KW_KWARGS, Obj)),
Str,
),
Immutable,
Visibility::BUILTIN_PUBLIC,
);