filter_keys function:

Filter an object by keys. The first argument should be the object and the second should be a function to filter the keys by.

Examples:

  • running: (filter_keys {"a": 1, "aa": 2, "aaa": 3, "aaaa": 4}, (>= (len .) 3)) will give: {"aaa": 3, "aaaa": 4} Because it filters all the keys that are shorter than 3 characters.

  • running: (filter_keys [1, 2, 4], false) will return nothing