//! Demonstration of the pretty_print function //! //! Compile and run: //! cargo run --example pretty_print_demo use morphology::Value; fn main() { println!("Pretty Print Demonstration\n"); println!("{}", "=".repeat(50)); let examples = vec![ (0, 0), (0, 1), (1, 0), (-1, 0), (1, 3), (2, 1), (-3, 2), (5, 7), (-5, 7), (4, -8), (-4, -8), ]; for (outer, inner) in examples { let value = Value::new(outer, inner); println!( "{:10} -> {}", format!("{}", value), value.pretty_print() ); } println!("{}", "=".repeat(50)); }