diff --git a/lib/src/fnc/math.rs b/lib/src/fnc/math.rs index 99ffd02e..5e444205 100644 --- a/lib/src/fnc/math.rs +++ b/lib/src/fnc/math.rs @@ -150,7 +150,7 @@ pub fn stddev(_: &Context, mut args: Vec) -> Result { pub fn sum(_: &Context, mut args: Vec) -> Result { match args.remove(0) { Value::Array(v) => Ok(v.as_numbers().into_iter().sum::().into()), - _ => Ok(Value::None), + v => Ok(v.as_number().into()), } }