relate function

Map inputs from a vector of keys to a vector of values.