Toolbelt v0.3.1 Toolbelt.Keyword
Functions closely related to Keyword
that didn’t make it or didn’t yet make it to the standard library.
Summary
Functions
Fetches a value on the given path in a deeply nested keyword list
Determines if the given value can be used as a keyword list element
Just like Enum.map
, except that nested keyword lists within the given list will be tranversed and also transformed
Similar to Maplike.merge_deep
, but only merges on nested maps
See Keyword.new/0
See Keyword.new/1
Creates a new keyword list from another list with only keys in it that have the given prefix
Similar to Kernel.put_in/3
, but creates new keyword lists if nil
is returned while traversing the path
Functions
See Keyword.delete/2
.
See Keyword.delete/3
.
See Keyword.drop/2
.
See Keyword.equal?/2
.
See Keyword.fetch/2
.
See Keyword.fetch!/2
.
See Enum.filter/2
.
See Keyword.get/2
.
See Keyword.get/3
.
See Keyword.get_lazy/3
.
See Keyword.get_values/2
.
See Keyword.has_key?/2
.
See Keyword.keys/1
.
See Keyword.keyword?/1
.
See Enum.map/2
.
Just like Enum.map
, except that nested keyword lists within the given list will be tranversed and also transformed.
See Keyword.merge/2
.
See Keyword.merge/3
.
See Keyword.new/0
.
See Keyword.new/1
.
See Keyword.new/2
.
Creates a new keyword list from another list with only keys in it that have the given prefix.
See Keyword.pop/2
.
See Keyword.pop/3
.
See Keyword.pop_first/2
.
See Keyword.pop_first/3
.
See Keyword.pop_lazy/3
.
See Keyword.put/3
.
Similar to Kernel.put_in/3
, but creates new keyword lists if nil
is returned while traversing the path.
See Keyword.put_new/3
.
See Enum.reduce/3
.
See Keyword.replace/3
.
See Keyword.replace!/3
.
See Keyword.size/1
.
See Keyword.split/2
.
See Keyword.take/2
.
See Keyword.to_list/1
.
See Keyword.update/4
.
See Keyword.update!/3
.
See Keyword.values/1
.