Skip to content

Commit a1e7e3e

Browse files
Simplified binary operations for DFAs (#139)
1 parent e8605ad commit a1e7e3e

File tree

2 files changed

+180
-227
lines changed

2 files changed

+180
-227
lines changed

automata/base/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def get_renaming_function(counter: count) -> Callable[[Any], int]:
4848
for each distinct input.
4949
"""
5050

51-
new_state_name_dict: DefaultDict[Any, int] = defaultdict(lambda: next(counter))
51+
new_state_name_dict: DefaultDict[Any, int] = defaultdict(counter.__next__)
5252

5353
def renaming_function(item: Any) -> int:
5454
return new_state_name_dict[item]

0 commit comments

Comments
 (0)