diff options
author | funemy | 2022-10-25 09:14:27 +0000 |
---|---|---|
committer | funemy | 2022-10-25 09:14:27 +0000 |
commit | fcb5f2ad8d901f1df33ada07e6888ab05806f33a (patch) | |
tree | 3197b98ae26924add5dbb8fc0103ae27e71da9a1 /entries/lilylin/fractran/src/main.rs | |
parent | 2f43aade2ed78389b32fd48598a2bf85ca9fdd9c (diff) | |
parent | 9375f87d202403e93ea4196e60de24fd9a9ea065 (diff) |
Merge branch 'main' of github.com:braxtonhall/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(()); -} |