Closed bnorthan closed 6 years ago
Thanks @bnorthan!
While we're at it: do you think the min and max ops should use T extends Comparable<T>
rather than T extends RealType<T>
? It looks like the only tricky part would be the current hack of using getMinValue()
/getMaxValue()
for the initial value.
This pull request addresses #559 by implementing the solution proposed by @hanslovsky.
It also adds a small test to verify the return type is now the same as the input type.