Package-level declarations

Properties

Link copied to clipboard
actual val firstElement: Int = 1
expect val firstElement: Int

The first element of the Fibonacci sequence. This value is expected to be provided by platform-specific implementations.

actual val firstElement: Int = 5
actual val firstElement: Int = 2
actual val firstElement: Int = 4
actual val firstElement: Int = 10
Link copied to clipboard
actual val secondElement: Int = 2
expect val secondElement: Int

The second element of the Fibonacci sequence. This value is expected to be provided by platform-specific implementations.

actual val secondElement: Int = 6
actual val secondElement: Int = 3
actual val secondElement: Int = 8
actual val secondElement: Int = 11

Functions

Link copied to clipboard

Generates an infinite Fibonacci sequence starting from the firstElement and secondElement. The sequence is lazily evaluated, meaning elements are computed as they are requested.