/array/midpoint
stdReturns the middle element or the right one when the number of elements is even.
Type signature
<T>(xs: T[]) => T | undefined
Questions
- How to get the element in the middle of an array?
- How to get the middle element of an array?