use rustofi::window::*;
fn fizzbuzz() -> Vec<String> {
let mut results = Vec::new();
for x in 1..25 {
match (x % 3 == 0, x % 5 == 0) {
(false, false) => results.push(x.to_string()), (false, true) => results.push("Fizz".to_string()), (true, false) => results.push("Buzz".to_string()), (true, true) => results.push("FizzBuzz".to_string()), }
}
results
}
fn main() {
Window::new("FizzBuzz in Rofi!").lines(8).show(fizzbuzz());
}