blob: a874e1d80408f6bc6c52029f04beba2742ff9c7f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#![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(());
}
|