Skip to content

Commit ff2535b

Browse files
committed
-
1 parent 8f5aee7 commit ff2535b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

source_py3/python_toolbox/math_tools/sequences.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def shitfuck(k, recurrence_counter):
7272
assert recurrence_counter
7373
# (Works because `FrozenCrateCounter` has a functioning `__bool__`,
7474
# unlike Python's `Counter`.)
75-
return len(recurrence_counter)
75+
return recurrence_counter.n_elements
7676
try:
7777
return _shitfuck_cache[(k, recurrence_counter)]
7878
except KeyError:
@@ -126,7 +126,7 @@ def catshit(k, recurrence_counter):
126126
assert recurrence_counter
127127
# (Works because `FrozenCrateCounter` has a functioning `__bool__`,
128128
# unlike Python's `Counter`.)
129-
return 1
129+
return recurrence_counter.n_elements
130130
try:
131131
return _catshit_cache[(k, recurrence_counter)]
132132
except KeyError:

source_py3/python_toolbox/nifty_collections/frozen_counter_counter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,4 @@ def get_sub_counters_for_one_crate_and_previous_piles_removed(self):
5656
)
5757
return tuple(sub_counters)
5858

59+

0 commit comments

Comments
 (0)