nested_filter v0.1.4 NestedFilter

Documentation for NestedFilter.

Summary

Functions

Take a (nested) map and filter out any values with specified keys in the keys_to_reject list

Take a (nested) map and filter out any keys with specified values in the values_to_reject list

Types

key()
key() :: any
predicate()
predicate() :: (key, val -> boolean)
val()
val() :: any

Functions

drop_by(map, predicate)
drop_by(any, predicate) :: any
drop_by_key(map, keys_to_reject)
drop_by_key(%{optional(any) => any}, [any]) :: %{optional(any) => any}

Take a (nested) map and filter out any values with specified keys in the keys_to_reject list.

drop_by_value(map, values_to_reject)
drop_by_value(%{optional(any) => any}, [any]) :: %{optional(any) => any}

Take a (nested) map and filter out any keys with specified values in the values_to_reject list.