Safe Haskell | Safe-Inferred |
---|
Documentation
The fibsLen function returns the number of Fibonacci numbers in the first1001Fibs list.
:: Integer | The maximum Fibonacci number to return |
-> [Integer] | Returns all Fibonaccis below the threshold |
The fibsUpTo function returns the list of Fibonacci numbers that are less than or equal to the given number.
first1001Fibs :: [Integer]Source
first1001Fibs is a list of the first 1001 Fibonacci numbers. This list was retrieved from the Gutenberg Project (http:www.ibiblio.orgpubdocsbooksgutenbergetext01fbncc10.txt)
The isFib function returns whether or not the given number is a Fibonacci number.
The lastFib function returns the last Fibonacci number in the list of Fibonacci numbers, first1001Fibs.