This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from inspect import signature | |
class Applicator: | |
def __init__(self, fn, total_args, args=None): | |
self.fn = fn | |
self.total_args = total_args | |
self.args = [] if args is None else args | |
def __call__(self, *args): |