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
@Yu-zh It may take a little learning to get used to some of the language extensions at play here; but should be pretty approachable!
The first optimization you'll probably want to use a "pattern guard" to check if the incoming map is empty, then use the one function to create a new map.
For the second optimization, you'll want to copy and slightly adapt the code in adjusthere
Feel free to take a look and let us know if you have questions 😄
A few ideas after @ChrisPenner improvements:
one
member
is true, update the array cell and copy arrayAny other ideas are appreciated 🙂
The text was updated successfully, but these errors were encountered: