Compare commits

..

No commits in common. "76a3f12d9e69d6536a78afebab842d4192ac7591" and "dea2e2d6a3edd64152f4669a422d2722762779e8" have entirely different histories.

2 changed files with 1 additions and 1 deletions

View File

@ -20,6 +20,5 @@ fn main() {
println!("{}", gray_code(15)); println!("{}", gray_code(15));
println!("{}", gray_code(7)); println!("{}", gray_code(7));
println!("{}", gray_code(3)); println!("{}", gray_code(3));
print_truth_table("ZFG|&");
print_truth_table("ABC|&"); print_truth_table("ABC|&");
} }

View File

@ -97,6 +97,7 @@ pub fn print_truth_table(formula: &str) {
separator = format!("{separator}---|"); separator = format!("{separator}---|");
println!("{format}"); println!("{format}");
println!("{separator}"); println!("{separator}");
//dbg!(vec.clone());
recursive_fn(formula, vec.into_iter().rev().collect(), String::from("|")); recursive_fn(formula, vec.into_iter().rev().collect(), String::from("|"));
// call eval formula a lot // call eval formula a lot
} }