pub const fn max_arr<const N: usize>(input: [usize; N]) -> usize {
    let mut max = 0;
    let mut i = 0;

    while i < N {
        if input[i] > max {
            max = input[i];
        }

        i += 1;
    }

    max
}
/// Max of an array of `usize`. This function's implementation is funky because
/// we have no for loops!
Max of an array of `usize`. This function's implementation is funky because
we have no for loops!
Max of an array of ` usize ` . This function ' s implementation is funky because we have no for loops!
pub const fn max_arr<const N: usize>(input: [usize; N]) -> usize {
    let mut max = 0;
    let mut i = 0;
    while i < N {
        if input[i] > max {
            max = input[i];
        }
        i += 1;
    }
    max
}
pub const fn max_arr < const N : usize > ( input : [ usize ; N ] ) -> usize { let mut max = 0 ; let mut i = 0 ; while i < N { if input [ i ] > max { max = input [ i ] ; } i += 1 ; } max }
Max of an array of `usize`.
Max of an array of ` usize ` .
input
[usize; N]
input
[usize; N]