View Source Extructure.Keylist (Extructure v1.0.0)

A subset of Elixir Keyword functions slightly modified to support both atom and string keys.

Link to this section Summary

Link to this section Types

@type key() :: atom() | String.t()
@type t() :: [{key(), value()}]
@type value() :: any()

Link to this section Functions

@spec delete(t(), key()) :: t()
@spec keylist?(term()) :: boolean()
Link to this function

merge(keylist1, keylist2, fun)

View Source
@spec merge(t(), t(), (key(), value(), value() -> value())) :: t()
@spec reject(t(), ({key(), value()} -> as_boolean(term()))) :: t()