[FOLD] template on Stream