pub fn calculate<M: ManagedTypeApi>(
list: &mut [BigUint<M>],
) -> Result<Option<BigUint<M>>, StaticSCError>
Expand description
Returns the sorted middle, or the average of the two middle indexed items if the vector has an even number of elements.