Function get_function_result

Source
pub fn get_function_result(
    function_name: String,
    parameter_and_value: &mut Vec<BaseTypes>,
    dot_notation: String,
    array: Option<Array>,
    dictionary: Option<Dictionary>,
    _variable: Option<Variable>,
) -> Result<BaseTypes, Box<dyn Error>>
Expand description

Get the function result

params: function_name: String -> The name of the function params: parameter_and_value: &mut Vec -> The parameters and values params: dot_notation: String -> The dot notation -> either dictionary, array or variable else no dot notation params: array: Option -> The array if dot call params: dictionary: Option -> The dictionary if dot call params: variable: Option -> The variable if dot call

Returns: Result<BaseTypes, Box> -> The result of the function