Max
Not available in this language yet.
Max( value_1, value_2, ... )
Max( value_1, value_2, ... )
Max( value_1, value_2, ... )
Not available in this language yet.
Not available in this language yet.
Not available in this language yet.
Max( value_1, value_2, ... )
Parameters
Argument | Type | Definition and Requirements |
---|---|---|
|
List of Numbers |
A single value or a list of values. |
Examples
The query below executes an array of independent max operations and returns the results in an array. The result array position matches the execution array position. The top operation in the execution array, max of the values 1, 5, and 22, returns a long value of 22 in the top position of the result array.
System.out.println(
client.query( Arr(
Max(Value(1), Value(5), Value(22)),
Max(Value(1), Value(0), Value(3), Value(-1)),
Max(Value(-1), Value(12), Value(3), Value(-1)),
Max(Value(10))
)).get());
[
22,
3,
12,
10
]
Was this article helpful?
We're sorry to hear that.
Tell us how we can improve!
documentation@fauna.com
Thank you for your feedback!