| Crates.io | kyj_rpn_calc |
| lib.rs | kyj_rpn_calc |
| version | 0.1.2 |
| created_at | 2023-01-26 06:30:05.415668+00 |
| updated_at | 2023-01-26 06:32:52.09822+00 |
| description | RPN(Reverse Polish Notatio) library |
| homepage | https://github.com/curiouscod3 |
| repository | |
| max_upload_size | |
| id | 768236 |
| size | 3,300 |
Reverse Polish notation (RPN) Calc.
fn main() {
let src = String::from("1 2 + 3 * ");
let a = rpn_calc::eval(src).unwrap();
println!("{}", a); // →9
}
fn main() {
let result = rpn_calc::eval_str("1 2 3 * +");
println!("{}", result); // →7
}