feat: const abs/all/any/len/map

This commit is contained in:
Shunsuke Shibayama 2024-01-29 13:29:39 +09:00
parent f0e47201bf
commit d59a4e82d3
5 changed files with 214 additions and 8 deletions

View file

@ -646,7 +646,12 @@ impl Context {
}
}
fn call(&self, subr: ConstSubr, args: ValueArgs, loc: Location) -> EvalResult<TyParam> {
pub(crate) fn call(
&self,
subr: ConstSubr,
args: ValueArgs,
loc: Location,
) -> EvalResult<TyParam> {
match subr {
ConstSubr::User(user) => {
// HACK: should avoid cloning