Using linq given a IEnumerable of two dimensional points, Find the distance required to navigate all points assuming the points are visited in the order they appear in the list.
I thought I might be able to somehow use the .Aggregate<> function but can't figure out how to make it work. The problem is the aggregate returns the same type as the list, which is a point I need a scalar (double).
If this problem is not solvable using linq, it would be interesting to know what class of problem can and what class of problem can not be solved using linq.
This is not homework but is a required step in a personal project to help me learn linq.