v0.3.0
As always, you can try out the latest development release online.
"Days of Abandon"
Major Changes
-
Vector indexed assignment (
x[1:3] <- 10
) is now supported! What's more,
it avoids intermediate replications of the vector by keeping track of the
indexing operation as a "view" of the vector.x <- 1:10 x[2:8][2:5][[2]] <- 1000 x # [1] 1 2 3 1000 5 6 7 8 9 10
-
Mutating assignment implemented for
List
s, including by named index.x <- list(a = 1, b = 2, c = 3, d = 4, e = 5) x[2:3][[1]] <- 200 x[1:4][c("d", "c")] <- 1000 x # list(a = 1, b = 200, c = 1000, d = 1000, e = 5)
Internals
-
"altreps" are now supported internally, though currently only a "Subset"
(used for indexed assignment) is implemented. -
List
s were reworked to use aHashMap
of named values, allowing for
more immediate access to named values without repeated traversals of a
vector of pairs.