Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
GuangchuangYu committed Aug 17, 2024
1 parent 1d43b3d commit 28b0ed3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/concat.r
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ c2 <- function(x, y) {


x$vector_list <- c(x$vector_list, list(y))
x$idx <- c(x$idx, x$idx[length(x$idx)] + x$last_size)
x$idx <- c(x$idx, length(x))
x$last_size <- length(y)

return(x)
Expand Down Expand Up @@ -57,7 +57,7 @@ length.chunked_array <- function(x) {

pos <- i - x$idx[j]

sapply(seq_along(pos), function(k) {
sapply(seq_along(i), function(k) {
x$vector_list[[j[k]]][pos[k]]
})
}
Expand Down

0 comments on commit 28b0ed3

Please sign in to comment.