Mininum or maximum element in a stream of elements.