max 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.
The largest element of a non-empty structure with respect to the given comparison function.
O(log n). Retrieves the value associated with maximal key of the map, and the map stripped of that element, or Nothing if passed an empty map.
maxView (fromList [(5,"a"), (3,"b")]) == Just ("a", singleton 3 "b")
maxView empty == Nothing
O(log n). Retrieves the maximal (key,value) pair of the map, and the map stripped of that element, or Nothing if passed an empty map.
maxViewWithKey (fromList [(5,"a"), (3,"b")]) == Just ((5,"a"), singleton 3 "b")
maxViewWithKey empty == Nothing
O(log n). Retrieves the maximal key of the set, and the set stripped of that element, or Nothing if passed an empty set.
O(n) maximum returns the maximum value from a Text, which must be non-empty. Subject to fusion.
O(n) Yield the index of the maximum element of the vector. The vector may not be empty.
O(n) Yield the index of 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. 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 according to the given comparison function. The vector may not be empty.
O(n) Yield the index of the maximum element of the vector. The vector may not be empty.
O(n) Yield the index of 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. 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 according to the given comparison function. The vector may not be empty.
O(n) Yield the index of the maximum element of the vector. The vector may not be empty.
O(n) Yield the index of 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. 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 according to the given comparison function. The vector may not be empty.
O(n) Yield the index of the maximum element of the vector. The vector may not be empty.