Function rfyl::parse_into_infix [] [src]

pub fn parse_into_infix(input_formula: Vec<String>) -> String

Returns a Vector of Strings with each element containing a token or an operator in bracketed infix format.

Arguments

  • input_formula - A Vector of Strings that provides the postfix formatted notation to work off. See rfyl::parse_into_rpn() for more details.

Example values

  • ["3", "4", "6", "*", "+"] -> ["(", "3", "+", "(", "4", "*", "6", ")", ")"]