Skip to content

Commit

Permalink
simplify one
Browse files Browse the repository at this point in the history
  • Loading branch information
shikokuchuo committed Oct 7, 2024
1 parent 701e91a commit ca2e530
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/map.R
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,11 @@ mirai_map <- function(.x, .f, ..., .args = list(), .promise = NULL, .compute = "
)
) else `names<-`(
lapply(
seq_along(.x),
function(i) mirai(
.x,
function(x) mirai(
.expr = do.call(.f, c(list(.x), .args)),
.f = .f,
.x = .subset2(.x, i),
.x = x,
...,
.args = list(.args = .args),
.compute = .compute
Expand Down

0 comments on commit ca2e530

Please sign in to comment.