Skip to content

Commit

Permalink
optimize one
Browse files Browse the repository at this point in the history
  • Loading branch information
shikokuchuo committed Oct 4, 2024
1 parent 3a9410f commit 7d426b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/map.R
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ mirai_map <- function(.x, .f, ..., .args = list(), .promise = NULL, .compute = "

missing(..1) && return(collect_aio_(x))

dots <- lapply(substitute(alist(...))[-1L], get, pos = .getNamespace("mirai"))
dots <- lapply(substitute(alist(...))[-1L], eval, envir = environment(mirai_map))
expr <- if (length(dots) > 1L) do.call(expression, dots) else dots[[1L]]
xlen <- length(x)
i <- 0L
Expand Down

0 comments on commit 7d426b7

Please sign in to comment.