use std::io::{self, Write}; use day8::combination; fn main() { let mut buffer = String::new(); print!("Insert the digits: "); io::stdout().flush().expect("Failed to flush stdout."); io::stdin() .read_line(&mut buffer) .expect("Failed to read the digits."); let combinations = combination(buffer.trim()); println!( "Those are all the possible combinations: {:?}", combinations ); }