Pattern: PPingPong
Ping-pong input pattern back and forth N times.
Example output
>>> p = PPingPong(PSeq([ 1, 4, 9 ], 1), 10)
>>> p.nextn(16)
[1, 4, 9, 4, 1, 4, 9, 4, 1, 4, 9, 4, 1, 4, 9, 4]
Ping-pong input pattern back and forth N times.
>>> p = PPingPong(PSeq([ 1, 4, 9 ], 1), 10)
>>> p.nextn(16)
[1, 4, 9, 4, 1, 4, 9, 4, 1, 4, 9, 4, 1, 4, 9, 4]