map_unique: Run a function on unique values of a iterable
Description
Runs a function on unique values of a list/vector and then reformats the
output so there is a one-to-one relationship with the input. Basically
imitates lapply
.
Usage
map_unique(input, func, ...)