Published
Edited
Jan 15, 2022
Insert cell
Insert cell
fs`
let rec fib = function
| 0 -> 0
| 1 -> 1
| n -> fib (n - 1) + fib (n - 2)

fib 6
`
Insert cell
Maths = fs.mod`
let rec fact = function
| 0 -> 1
| n -> n * fact (n - 1)
`
Insert cell
Maths.fact(10)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more