I was browsing this question and some similar ones:
Getting a sub-array from an existing array
Many places I read answers like this:
Getting a sub-array from an existing array
What I am wondering is why Skip and Take are not constant time operations for arrays?
In turn, if they were constant time operations, won't the Skip and Take method (without calling ToArray() at the end) have the same running time without the overhead of doing an Array.Copy, but also more space efficient?
Buffer.BlockCopy
(DMA) is really fast compared toArray.Copy
(O(n)) - it only works for primitives (int, float, etc.) though. – Chairborne