lib/nydp/builtin/set_intersection.rb in nydp-0.5.1 vs lib/nydp/builtin/set_intersection.rb in nydp-0.6.0
- old
+ new
@@ -1,8 +1,7 @@
class Nydp::Builtin::SetIntersection
include Nydp::Builtin::Base, Singleton
- def builtin_invoke_2 vm, a ; vm.push_arg a ; end
- def builtin_invoke_3 vm, a, b ; vm.push_arg(a & b) ; end
- def builtin_invoke_4 vm, a, b, c ; vm.push_arg(a & b & c) ; end
- def builtin_invoke vm, args ; vm.push_arg args.reduce &:& ; end
+ def builtin_call *args
+ args.reduce(&:&)._nydp_wrapper
+ end
end