tidyverse / funs

Collection of low-level functions for working with vctrs
Other
34 stars 7 forks source link

vectorise() #28

Open lionel- opened 5 years ago

lionel- commented 5 years ago
vectorise <- function(fn, .ptype = NULL) {
  function(.x, ...) {
    map_vec(.x, fn, ..., .ptype = .ptype)
  }
}
hadley commented 4 years ago

Would this be more natural in purrr?