get

Get the kth index of the Fibonacci sequence

get(k: Integer): Object
Parameters
k (Integer) index of the Fibonacci number to retrieve
Returns
Object: contains the number, next number, index, and time

find

Find the index of a given Fibonacci number

find(num: (Big | String | Integer)): Object
Parameters
num ((Big | String | Integer)) Fibonacci number
Returns
Object: contains the number, next number, index, and time

is

Checks if a given number is a Fibonacci number

is(num: (Big | String | Integer)): Boolean
Parameters
num ((Big | String | Integer)) number to check
Returns
Boolean: is number in Fibonacci sequence

iterator

Create a Fibonacci sequence iterator

iterator(k: [Integer], n: [Integer]): Iterator
Parameters
k ([Integer]) starting index of the iterator
n ([Integer]) number of values to limit the iterator to
Returns
Iterator: Fibonacci sequence iterator

array

Grab an array of the Fibonacci sequence

array(k0: Integer, k1: Integer): Array
Parameters
k0 (Integer) the starting index
k1 (Integer) the ending index
Returns
Array: an array from index k0 up to but not including k1