Mode:
Duration:
1
2
3
4
5
6
let rec fibonacci n =
if n = 0 then 0
elif n = 1 then 1
else fibonacci(n-1) + fibonacci(n-2)
[0..9] |> List.iter (fun n -> printfn "%d" (fibonacci n))Coding works best on desktop or with an external keyboard.
let rec fibonacci n =
if n = 0 then 0
elif n = 1 then 1
else fibonacci(n-1) + fibonacci(n-2)
[0..9] |> List.iter (fun n -> printfn "%d" (fibonacci n))Coding works best on desktop or with an external keyboard.
Recursive Fibonacci sequence generator.
let rec fibonacci n =
if n = 0 then 0
elif n = 1 then 1
else fibonacci(n-1) + fibonacci(n-2)
[0..9] |> List.iter (fun n -> printfn "%d" (fibonacci n))F# is a functional-first, strongly typed language on the .NET platform. It blends functional, object-oriented, and imperative styles, offering concise syntax, powerful type inference, and high reliability. Ideal for data science, finance, domain modeling, and backend services.
Origin & Creator
Developed by Microsoft Research under Don Syme, released in 2005 as a functional-first language on .NET.
Industrial Note
F# excels in enterprise financial analytics, domain-driven modeling, algorithmic trading systems, scientific computation, ML/AI pipelines, data engineering, and strongly typed business rule engines where correctness and expressiveness are crucial.