The returned iterator can only generate the first 79 negaFibonacci numbers, as larger negaFibonacci numbers cannot be safely represented in double-precision floating-point format.
If an environment supports Symbol.iterator, the returned iterator is iterable.
var iter = iterNegaFibonacciSeq();
var v = iter.next().value;
// returns 0
v = iter.next().value;
// returns 1
v = iter.next().value;
// returns -1// ...
Returns an iterator which generates a negaFibonacci sequence.
Notes
79
negaFibonacci numbers, as larger negaFibonacci numbers cannot be safely represented in double-precision floating-point format.Symbol.iterator
, the returned iterator is iterable.iter
option must be a nonnegative integeriter
option must be less than or equal to 79