Overview Clamps Packages CM Dictionary Clamps Dictionary Fomus
Next: file-string , Previous: faderfox-midi , Up: F , Home: Overview

Clamps Dictionary

fibonacci

Function

(fibonacci n)

Calculate the n-th element of the Fibonacci series. The function is not recursive, but calculates the value directly, running in constant time.

Arguments

n Non Negative Integer denoting the index of the Fibonacci series.

Example

(mapcar #'fibonacci (range 12)) ; => (1 1 2 3 5 8 13 21 34 55 89 144)

Author: Orm Finnendahl

Created: 2025-02-18 Di 12:58

Validate