yeah - it looks like skulpt hasn’t overloaded the binary operations for Counter
You could hack the behaviour by calling update
def sum_counters(list_dicts):
x = Counter()
for d in list_dicts:
x.update(d)
return x
yeah - it looks like skulpt hasn’t overloaded the binary operations for Counter
You could hack the behaviour by calling update
def sum_counters(list_dicts):
x = Counter()
for d in list_dicts:
x.update(d)
return x