Pluck nested values from config in order of priority

get_prioritised_value(values, priority)

Arguments

values

A named vector from which a values is chosen

priority

A ranked set of keys