MINOR: pattern: add function to lookup a specific entry in pattern list

This is used to dynamically delete or update map entry.
2 files changed