diff --git a/ladderz/all.html b/ladderz/all.html index b0b0017..f0107e1 100644 --- a/ladderz/all.html +++ b/ladderz/all.html @@ -1 +1 @@ -
Now in src/main.rs let’s replace the contents with the following code:
use ladderz::pre_algebra::unit1::{get_factor_pairs, get_factors};
+use ladderz::pre_algebra::{get_factors, get_factor_pairs};
use std::env;
fn main() {
@@ -57,8 +57,8 @@ cd my_ladderz_project
./target/release/my_ladderz_project.exe 12
The printed output should be:
-
-List of factors of 12: [1, 2, 3, 4, 6, 12]
-List of factor pairs of 12: [(1, 12), (2, 6), (3, 4)]
+List of factors of 12: [1, 2, 3, 4, 6, 12]
+List of factor pairs of 12: [(1, 12), (2, 6), (3, 4)]
+
Great! We’ve successfully used the ladderz crate to get the factors and factor pairs of a positive integer in sorted order.
Modules
- Various pre-algebra implementations including factor pairs, factors, multiples, and more.