Closed oscbyspro closed 1 month ago
I might want to extend the fib sequence to negative indices as well so that I can use it to test operations with an appendix of one instead of it always being zero in the finite and nonnegative range.
..., −8, 5, −3, 2, −1, 1, 0, 1, 1, 2, 3, 5, 8, ...
This is simple change, for the most part. I believe the only tricky bit is deciding when decrement(by:) overflows.
Meh, It's just +/- the same values.
I might want to extend the fib sequence to negative indices as well so that I can use it to test operations with an appendix of one instead of it always being zero in the finite and nonnegative range.