diff options
author | Braxton Hall | 2022-10-25 07:23:00 +0000 |
---|---|---|
committer | GitHub | 2022-10-25 07:23:00 +0000 |
commit | a0abfebaf87e7ebd7d32dbc0a8225c1e803aa914 (patch) | |
tree | 6b8ab21e4becbad54372f1f2bd4decccfbb76863 /entries/lilylin/fractran/src/main.rs | |
parent | ce7544a6db594f7d3dfad0d7dc65d01515e57ad6 (diff) | |
parent | 0ed18c72ac8be49badd4b0542faf9b75c6fbce0b (diff) |
Merge pull request #40 from rctcwyvrn/lily
Simplify fractran fib
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(()); -} |