Instance Method

max()

Returns the element with the highest value in a column of integers.

Declaration

func max() -> Int?
Available when Element is Int.

Return Value

An Int; otherwise nil if the column is empty or invalid.

See Also

Getting the Min and Max Element Values

func min() -> Int?

Returns the element with the lowest value in a column of integers.

func min() -> Double?

Returns the element with the lowest value in a column of doubles.

func max() -> Double?

Returns the element with the highest value in a column of doubles.