Jump to content

How to iterate all elements in a dynamic map.


Recommended Posts

So the way the map works is we can iterate all elements in the map by indexing on the input of a for or a while. However, This only works for a non-changing Map.

 if you are adding elements during the loop is there a good way of iterating all non-iterated items?

Id like to have a version without a duplicate structure:

I have these:

image.png.111c93ade9fb7ef40aa1390792c805d5.png

This might be the best that can be done. but I thought id ask.

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.