pub fn rpn_slice_to_string(rpn: &[RPN]) -> String
Expand description
Shows a representation of an expression formatted into RPN.
Example:
use math_parse::*;
let rpn = MathParse::parse("3+1*2").unwrap().to_rpn().unwrap();
assert_eq!(
rpn_slice_to_string(&rpn),
"3 1 2 * +".to_string());