fiboci/fiboci

Values

pub fn fibonacci(n: Int, print_each_term: Bool) -> Int

Example

import fibonacci/fiboci

pub fn main() {
  assert fiboci.fibonacci(100, False) == 218_922_995_834_555_169_026
  let result = fiboci.fibonacci(100, True) // => it will print each term of the fibonacci sequence and return the 100th term
  echo result // => 218922995834555169026
}
✨ Search Document