-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Map of Deque #15
Labels
enhancement
New feature or request
Comments
Not sure if this is exactly what you're hoping for, but maybe another example/inspiration: https://docs.rs/near-sdk/3.1.0/near_sdk/collections/struct.TreeMap.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Map
s andDeque
s are great. But how to combine them? Both a list of maps and a map of lists are interesting.In order to get a map of
Deque
s I currently have to use a workaround like this:I.e. I have to create new
Deque
s on the fly after composing the correct key. It works but does not look beautiful. Wouldn't it be great to make a DequeMap instead which has all the power of key composability of aMap
plus many storage items (a deque) per key? That would allow maps of stacks as well as maps of queues.The text was updated successfully, but these errors were encountered: