max


Description:

public Future<Optional<G>> max (owned CompareDataFunc<G>? compare = null)

Returns the maximum element of this seq, based on the given compare function.

This is a terminal operation.

Parameters:

compare

a non-interfering and stateless compare function. if not specified, Gee.Functions.get_compare_func_for is used to get a proper function

Returns:

a future of an optional describing the maximum element, or an empty optional if the seq is empty