nitc :: Metric :: max
# The element with the highest value fun max: ELM is abstract
redef fun max do assert not values_cache.is_empty return values_cache.max.as(not null) end
redef fun max do assert not values.is_empty var max: nullable Float = null var elem: nullable ELM = null for e, v in values do if max == null or v > max then max = v elem = e end end return elem.as(not null) end