Iterate over the given iterable in triples.
(iterable)
| 36 | |
| 37 | |
| 38 | def triplewise(iterable): |
| 39 | """Iterate over the given iterable in triples.""" |
| 40 | a, b, c = itertools.tee(iterable, 3) |
| 41 | next(b, None) |
| 42 | next(c, None) |
| 43 | next(c, None) |
| 44 | return zip(a, b, c) |
| 45 | |
| 46 | |
| 47 | class LSystemGrammar: |
nothing calls this directly
no outgoing calls
no test coverage detected