Repository navigation
Commit a6dcf89
authored
Use any() in the list/tuple branch of occur_check (#1210)
occur_check returns whether var occurs in x; for lists/tuples use any(occur_check(var, e, s) for e in x) - a clean boolean check returning a proper bool - instead of first(...). Applied to logic.py and logic4e.py.1 parent 91d3fe3 commit a6dcf89
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1766 | 1766 | | |
1767 | 1767 | | |
1768 | 1768 | | |
1769 | | - | |
| 1769 | + | |
1770 | 1770 | | |
1771 | 1771 | | |
1772 | 1772 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1358 | 1358 | | |
1359 | 1359 | | |
1360 | 1360 | | |
1361 | | - | |
| 1361 | + | |
1362 | 1362 | | |
1363 | 1363 | | |
1364 | 1364 | | |
| |||
0 commit comments