| 699 | val_func = func; |
| 700 | } |
| 701 | virtual value invoke(const func_args & args) const override { |
| 702 | func_args new_args(args); // copy |
| 703 | new_args.func_name = name; |
| 704 | if (arg0) { |
| 705 | new_args.push_front(arg0); |
| 706 | } |
| 707 | return val_func(new_args); |
| 708 | } |
| 709 | virtual std::string type() const override { return "Function"; } |
| 710 | virtual std::string as_repr() const override { return type() + "<" + name + ">(" + (arg0 ? arg0->as_repr() : "") + ")"; } |
| 711 | virtual bool is_hashable() const override { return false; } |
nothing calls this directly
no test coverage detected