MFILTER is available since version 2.9.0.
MFILTER function filters the element of a MAP according to the result of a macro execution on each key/value pair of the MAP. It produces a MAP containing only the elements for which the macro returned
The macro is called with a stack containing the MAP index on top and the key/value pair at that particular index below it. You can override this behaviour with a boolean.