HeadAndTailEnd
Returns a typle with the first and the last element of the collection.
Parameters
Returns
IEnumerable<T> source
(T Head, T TailEnd)
Exceptions
Type
When
InvalidOperationException
It is an empty collection.
Usage
Getting the first and the last elements
Getting the first and the last elements in a single element collection
Last updated
Was this helpful?