Pattern: PIndexOf
Find index of items from pattern
in
Example output
>>> p = PIndexOf([ chr(ord("a") + n) for n in range(26) ], PSeq("isobar"))
>>> p.nextn(16)
[8, 18, 14, 1, 0, 17, 8, 18, 14, 1, 0, 17, 8, 18, 14, 1]
Find index of items from pattern
in
>>> p = PIndexOf([ chr(ord("a") + n) for n in range(26) ], PSeq("isobar"))
>>> p.nextn(16)
[8, 18, 14, 1, 0, 17, 8, 18, 14, 1, 0, 17, 8, 18, 14, 1]