Compare commits
2 Commits
dea2e2d6a3
...
76a3f12d9e
Author | SHA1 | Date |
---|---|---|
gbrochar | 76a3f12d9e | |
gbrochar | b01b184e46 |
|
@ -20,5 +20,6 @@ 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|&");
|
||||||
}
|
}
|
||||||
|
|
|
@ -97,7 +97,6 @@ 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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue