### 2 unstable releases

0.2.0 | Jan 6, 2023 |
---|---|

0.1.0 | Jan 6, 2023 |

#**836** in Rust patterns

**MIT**license

5KB

82 lines

# Birgitte fibonacco

has functions that calculate the fibonacci number of a given number.`birgitte_fibonacci`

## Examples

`fib`

`fib`

Caclculates fibonacci with custom memoization

Supports: u8, u16, u32, u64, u128, usize

`assert_eq!``(``fib ::`

`<``usize``>``(`

`30`

`)`

`,`

`832040`

`)`

`;`

`fib_memo`

`fib_memo`

Caclculates fibonacci with memoizate

Supports: usize

`assert_eq!``(``fib_memo``(``30``)``,` `832040``)``;`

## Panic

If the number that is created is to big for the datastructure

###
`lib.rs`

:

# Birgitte_fibonacci

has functions that calculate the
fibonacci number of a given number.`birgitte_fibonacci`

#### Dependencies

~0.8–1.1MB

~28K SLoC