NonEmpty and remove()
functionality.
#60
Unanswered
nashysolutions
asked this question in
Q&A
Replies: 1 comment
-
Would appreciate input from the community on this one. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The NonEmpty library is great.
I want to efficiently remove items from a NonEmpty collection, but I'm not sure what the best strategy is. In the following example, I'm using IdentifiedArray.
Is this the de-facto approach?
Or this
Ideally, would want a more generic approach, with perhaps a default value, to guarantee the collection won't be empty.
Is this cool?
Beta Was this translation helpful? Give feedback.
All reactions