add syntax sugar for loop-patterns #4