Open lionel- opened 5 years ago
vectorise <- function(fn, .ptype = NULL) { function(.x, ...) { map_vec(.x, fn, ..., .ptype = .ptype) } }
Would this be more natural in purrr?