ImmutableList check and remove

ImmutableList check and remove

laptou on StackOverflow asked how to simultaneously check if an item is present and remove it (returning a bool in an out if found). To do so I came up with 3 possible extension methods, but there is some question of the O(n) complexity for each. I need to do some testing to see if I can figure out which is the most efficient (or if there is a 4th, as of yet undiscovered method, that is faster).




No comments:

Post a Comment