Package-level declarations

Properties

Link copied to clipboard
actual val firstElement: Int = 1

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

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 = 2

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

actual val firstElement: Int = 4

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

actual val firstElement: Int = 5

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

Link copied to clipboard
actual val secondElement: Int = 2

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

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 = 3

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

actual val secondElement: Int = 8

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

actual val secondElement: Int = 6

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

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.