aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorGuillermo Ramos2025-02-06 23:52:05 +0100
committerGuillermo Ramos2025-02-07 00:49:43 +0100
commit2e7780b7c13f43b61b026cfd803e0f904ef04878 (patch)
tree8fb5134e9b80d23c21c7784a4478afa417298293 /src/main.rs
parentca057d600ca54b3efebd6770dbe52acb38d9a25f (diff)
downloadhiccup-2e7780b7c13f43b61b026cfd803e0f904ef04878.tar.gz
Final refactor before doing actual work
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/main.rs b/src/main.rs
index f785bb0..fa9e01a 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,16 +1,16 @@
-use hiccup::MortgageUpdate::*;
-use hiccup::{MortgageUpdates, Simulation};
+use hiccup::SimUpdate::*;
+use hiccup::{SimUpdates, Simulation};
use std::collections::HashMap;
fn main() {
- let mut sim = Simulation::new(390_000., 0.028, 30);
- let updates: MortgageUpdates = HashMap::from_iter((0..29).map(|y| match y {
- 0 => (0, Amortize(30_000.)),
- _ => (y * 12, Amortize(12_000.)),
- }));
+ // let mut sim = Simulation::new(390_000., 0.028, 30);
+ // let updates: SimUpdates = HashMap::from_iter((0..29).map(|y| match y {
+ // 0 => (0, Amortize(30_000.)),
+ // _ => (y * 12, Amortize(12_000.)),
+ // }));
- // let mut sim = Simulation::new(200_000., 0.01621, 30);
- // let updates: MortgageUpdates = HashMap::new();
+ let mut sim = Simulation::new(200_000., 0.01621, 30);
+ let updates: SimUpdates = HashMap::new();
sim.run(updates);
sim.render_table();