A library of patterns for streamtools (better desc TK)