Timeline for Removing n elements from array starting from index
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 13, 2017 at 12:40 | history | edited | CommunityBot |
replaced http://codereview.stackexchange.com/ with https://codereview.stackexchange.com/
|
|
Jun 22, 2016 at 14:20 | comment | added | Rick Davin |
What I like best about this answer is your use of IEnumerable<T> rather than limiting it to just an array of T[] . For simple looping, this is great and uses less memory, and the developer can always use a .ToArray() later if need be.
|
|
Jun 21, 2016 at 18:14 | comment | added | t3chb0t | Yeah, I realize now that mixing them here wasn't probably my best idea today ;-) | |
Jun 21, 2016 at 16:17 | comment | added | Risky Martin |
TakeWhile() will ignore negative indexes, but Skip() will throw an exception for negative indexes, so you should be consistent and use TakeWhile() with SkipWhile() or Take() with Skip() .
|
|
Jun 21, 2016 at 16:03 | history | answered | t3chb0t | CC BY-SA 3.0 |