Amnesia.Helper.Options (nuamnesia v0.3.0)
Summary
Functions
Turns parameter into a list, invariant when paramers is a list or nil.
Allows use of pipe operator to chain conditional updates to a keyword list. If the given value is nil, no update is done.
Functions
Turns parameter into a list, invariant when paramers is a list or nil.
Allows use of pipe operator to chain conditional updates to a keyword list. If the given value is nil, no update is done.
Please note: mylist[:a][:b] will properly return nil even of mylist[:a] is already nil instead of crashing. This allows using even deeply nested values safely with this construct.