Proposal for Pattern Partition improvement

Another solution is to also pass group args to check function, which make it possible to distinguish exprs in matched group or not.