fibonacci-like 0.1.3

A small crate to help you interact with second order sequences, such as the Fibonacci sequence, with no_std support
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::str::FromStr;

fn main() {
    let arg = std::env::args().nth(1).unwrap_or_else(|| {
        println!("Please enter a number");
        panic!();
    });

    let nth = usize::from_str(&arg).unwrap_or_else(|_| {
        println!("Please pass a valid number");
        panic!();
    });

    let number = fibonacci_like::Sequence::fibonacci().calculate(nth);

    println!("The \"{nth}\" number of the fibonacci sequence is:\n{number}");
}