Skip the last element in an array and return all other elements C#
arrays, c#, skip
Solution
You can't use `Skip()` in this case but you must use `Take()`.
var result = list.Take(list.Length-1);
Problem
I would like to return all elements but the last element. I looked at maybe using the Skip() method but got confused. Can anyone help me out please? Thank you