[][src]Function mememo::mode

pub fn mode(numbers: &Vec<i32>) -> i32

Calculates the mode of the elements in the given vector.

Example

let numbers = vec![1, 2, 3, 1, 2, 1];
assert_eq!(1, mememo::mode(&numbers));