Closed shahreyar-abeer closed 4 years ago
Yes, though it won't be as fast as the reverse operations. For the first, you can use m$mget(m$keys())
. That will return a named list. For the second, I think you'd have to iterate through that list to search for the value, then get the corresponding name for that index.
Thanks for that.
I just remembered that you can use m$as_list()
to get a named list. That's simpler and probably faster than m$mget(m$keys())
.
Thanks. I did do that. Is there any way to update the values except m$set()?
You can use m$mset()
. This stuff is in the documentation, which can see with ?fastmap
, or here:
https://r-lib.github.io/fastmap/reference/fastmap.html
Okay, thanks for that.
Is it possible to-