diff options
author | Lily Lin | 2022-10-25 07:09:05 +0000 |
---|---|---|
committer | Lily Lin | 2022-10-25 07:09:05 +0000 |
commit | 7509f7f46d0511454dccce2d52545c045cb67e57 (patch) | |
tree | 70ab3d3e447e265bf22145a4bc847c9f6f4b5f73 /entries/lilylin/fractran/src/main.rs | |
parent | bea8092ecca8f4bf61a4df88c06f4eeb61ab3a56 (diff) |
Much simpler fractran program
Why did I commit the complex one in the first place...
Diffstat (limited to 'entries/lilylin/fractran/src/main.rs')
-rw-r--r-- | entries/lilylin/fractran/src/main.rs | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/entries/lilylin/fractran/src/main.rs b/entries/lilylin/fractran/src/main.rs deleted file mode 100644 index a874e1d..0000000 --- a/entries/lilylin/fractran/src/main.rs +++ /dev/null @@ -1,28 +0,0 @@ -#![feature(int_log)] - -use crate::core::Program; - -use anyhow::Ok; -use anyhow::Result; -use engines::register::Register; - -mod core; -mod engines; - -fn execute_fib() { - for i in 1..15 { - let engine = Register { - program: Program::fibonacci(i), - output_base: 2, - }; - let n = 1; - for val in engine.into_iter().take(n) { - print!("{:?},", val); - } - } -} - -fn main() -> Result<()> { - execute_fib(); - return Ok(()); -} |