Skip to content

Commit

Permalink
Merge pull request #786 from markfairbanks/simplify-coalesce
Browse files Browse the repository at this point in the history
Pass dots directly to `vec_cast_common()` in `coalesce()`
  • Loading branch information
markfairbanks authored Dec 11, 2023
2 parents 3eeca6e + 526b880 commit 0287929
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/coalesce.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
#' )
#' coalesce(!!!vecs)
coalesce <- function(..., .ptype = NULL, .size = NULL) {
args <- list2(...)
args <- vec_cast_common(!!!args, .to = .ptype)
args <- vec_cast_common(..., .to = .ptype)

out <- do.call(fcoalesce, args)

Expand Down

0 comments on commit 0287929

Please sign in to comment.