You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @renkun-ken ,
Thank you for this very helpful package!
I was wondering if there is any plan to add mutating capabilities in rlist. For instance, shouldn't be possible to list.update in-place ? e.g.: after doing this
yyy <- list(foo = list(a = 0, b = 1))
list.update(yyy, a = a + 10)
have the following as the result: print(yyy)
$foo
$foo$a
[1] 10
$foo$b
[1] 1
The text was updated successfully, but these errors were encountered:
Hi,
Thanks for considering the proposition. I did my homework and, it turned out major changes would be required to overhaul the current rlist code base with a Rcpp-backend. My best wishes go to you when you'll decide to take on the task.
In the object test1 foo is still named. However in test2, new element foo2 is unnamed.
It seems like list.update is not capable of updating object themselves.
Hi @renkun-ken ,
Thank you for this very helpful package!
I was wondering if there is any plan to add mutating capabilities in
rlist
. For instance, shouldn't be possible tolist.update
in-place ? e.g.: after doing thishave the following as the result:
print(yyy)
The text was updated successfully, but these errors were encountered: