def invoke3(self, arg0, arg1, arg2): if 3 in self.fns: AFn.invoke3(self, arg0, arg1, arg2) elif -1 in self.fns: AFn.apply(self, List.from_list([arg0,arg1,arg2])) else: raise Exception("No overload for 3")