math.rank( $arg as (String | Number | Boolean | null | Array | Object), $arg as xs.anyAtomicType, [$options as String] ) as Number?
Returns the rank of a value in a data set. Ranks are skipped in the event
of ties. If the given value is not equal to any item in the sequence, the
function returns the empty sequence. The function can be used on numeric
|$arg||The sequence of values.|
|$arg||The value to be "ranked".|
Options. The default is ().
math.rank([1, 7, 5, 5, 10, 9],9) => 5