I hereby claim:
- I am bigspider on github.
- I am salvatoreingala (https://keybase.io/salvatoreingala) on keybase.
- I have a public key ASCTSQkRuF63ID8d2tQHqEai-i3friZDrpF5xfha0U3y9go
To claim this, I am signing this object:
from typing import Iterable, List, Mapping, Tuple, Generator | |
def find_all(text: str, pattern: str, start: int = 0) -> Generator[int, None, None]: | |
"""Generates all the positions of `pattern` as a substring of `text`, starting from index at least `start`.""" | |
while True: | |
start = text.find(pattern, start) | |
if start == -1: | |
return | |
yield start |
I hereby claim:
To claim this, I am signing this object: