While lift_dl() wraps a function in
do.call(), map_call() is directly equivalent
to do.call() except that it takes a list as first argument
instead of a function. This makes `map_call()` pipable.
Usage
map_call(.x, .f, ...)
Arguments
.x
A list or a vector. Vectors are coerced to a list.
.f
A function or the name of a function to call with the
elements of .x as arguments.
# We map a list of strings to paste(), with sep = "-" and the# string "2001" as additional argumentslist("01", "01") %>%
map(~ sub("^01", "10", .)) %>%
map_call("paste", "2001", sep = "-")