maximum package:rio

O(n) maximum returns the maximum value from a ByteString
O(n) maximum returns the maximum value from a ByteString This function will fuse. An exception will be thrown in the case of an empty ByteString.
The largest element of a non-empty structure.
O(n) maximum returns the maximum value from a Text, which must be non-empty. Subject to fusion.
O(n) Yield the maximum element of the vector. The vector may not be empty.

Examples

>>> import qualified Data.Vector as V

>>> V.maximum $ V.fromList [2.0, 1.0]
2.0
O(n) Yield the maximum element of the vector. The vector may not be empty.

Examples

>>> import qualified Data.Vector as V

>>> V.maximum $ V.fromList [2.0, 1.0]
2.0
O(n) Yield the maximum element of the vector. The vector may not be empty.

Examples

>>> import qualified Data.Vector.Storable as VS

>>> VS.maximum $ VS.fromList [2.0, 1.0]
2.0
O(n) Yield the maximum element of the vector. The vector may not be empty.

Examples

>>> import qualified Data.Vector.Unboxed as VU

>>> VU.maximum $ VU.fromList [2.0, 1.0]
2.0
The largest element of a non-empty structure with respect to the given comparison function.
O(n) Yield the maximum element of the vector according to the given comparison function. The vector may not be empty.
O(n) Yield the maximum element of the vector according to the given comparison function. The vector may not be empty.
O(n) Yield the maximum element of the vector according to the given comparison function. The vector may not be empty.
O(n) Yield the maximum element of the vector according to the given comparison function. The vector may not be empty.
The largest element of a non-empty structure.
The largest element of a non-empty structure with respect to the given comparison function.