[PATCH v2 07/31] alist: Add a way to efficiently filter an alist