Function is_numeric_list

Source
pub fn is_numeric_list(arr: &mut Array) -> bool
Expand description

Tests whether the input in a simple list array composed of either floating point or integer values.

let x = [1.0, 2.0, 3.0, 4.0];
assert_eq(is_numeric_list(x), true)
let x = [1, 2, 3, 4];
assert_eq(is_numeric_list(x), true)
let x = ["a", "b", "c", "d"];
assert_eq(is_numeric_list(x), false)