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
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue