fix: combine arguments in the correct order

`tylc 40e3 / 6e3` interpreted the args as "6e3/40e3"
(before this change)
This commit is contained in:
electria 2026-07-27 22:28:05 -07:00
commit 4bdb51968f
Signed by: electria
SSH key fingerprint: SHA256:8LlB3ucPbBHqozqkhsNbaV5oG3SlzzqUj8FZDL6IPQs

View file

@ -9,8 +9,8 @@ use rug::Float;
mod nodes;
fn main() {
let input = match env::args().skip(1).reduce(|x, a| a + &x) {
Some(s) => s,
let input = match env::args().skip(1).rev().reduce(|x, a| a + &x) {
Some(s) => dbg!(s),
None => {
let mut buf = String::new();
io::stdin().read_to_string(&mut buf).unwrap();