mochilists
(mochiweb)Utility functions for dealing with proplists.
Utility functions for dealing with proplists.
Functions
get_value(Key::term(), Proplist::list()) -> term() | undefined
Return the value of Key
or undefined
get_value(Key::term(), Proplist::list(), Default::term()) -> term()
Return the value of Key
or Default
is_defined(Key::term(), Proplist::list()) -> bool()
Returns true if Propist contains at least one entry associated with Key, otherwise false is returned.
set_default(X1::{Key::term(), Value::term()}, Proplist::list()) -> list()
Return new Proplist with {Key, Value} set if not is_defined(Key, Proplist).
set_defaults(DefaultProps::[{Key::term(), Value::term()}], Proplist::list()) -> list()
Return new Proplist with {Key, Value} set if not is_defined(Key, Proplist).