Add Keyword.intersect/2-3 to mirror the Map API
Module
Keyword
14 changes across 12 versions
Changes by version
Add Keyword.split_with/2
Add Keyword.from_keys/2 and Keyword.replace_lazy/3
Deprecate the recently added Keyword.map/2 as it is equivalent to Keyword.new/2
Add Keyword.validate/2
Implement Keyword.filter/2 and Keyword.map/2
Enforce keys to be atoms in Keyword.keys/1
Add Keyword.pop!/2 and Keyword.pop_values/2
Ensure keyword replace and update preserve order
Keyword.replace/3 is deprecated in favor of Keyword.fetch/2 and Keyword.put/3
Add replace/3 and replace!/3 for replacing an existing key
Keyword.size/1 is deprecated in favor of Kernel.length/1
Keyword.size/1 is deprecated in favor of length/1
The list [1, 2, three: :four] now correctly expands to [1, 2, {:three, :four}]