rolling icon indicating copy to clipboard operation
rolling copied to clipboard

Rolling window contains function

Open ajcr opened this issue 7 years ago • 0 comments

Essentially a rolling version of Python's in operator. Return True if the window contains a given string, e.g.:

>>> seq = 'rollrollingndsfw'
>>> r = rolling.Contains(seq, window_size=10, match='rolling')
>>> list(r)
[False, True, True, ...]

Could also be extended to match multiple fixed strings.

ajcr avatar Apr 21 '18 16:04 ajcr