(lst, val, start=None)
| 10 | |
| 11 | |
| 12 | def rindex(lst, val, start=None): |
| 13 | if start is None: |
| 14 | start = len(lst) - 1 |
| 15 | for i in range(start, -1, -1): |
| 16 | if lst[i] == val: |
| 17 | return i |
| 18 | return -1 |
| 19 | |
| 20 | |
| 21 | def index_in_list(lst, val, start=None): |
nothing calls this directly
no outgoing calls
no test coverage detected