Public
Edited
Oct 1, 2023
Insert cell
Insert cell
N = 5
Insert cell
arrayA = res.arrayA
Insert cell
arrayA
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
res = {
const arrayA = [];

const res = ((c) =>
((b) => b(b))((d) =>
c((a) => {
arrayA.push({ a, d, "d(d)": d(d), c });
return d(d)(a);
})
))((f) => (n) => n <= 2 ? 1 : f(n - 1) + f(n - 2))(N);

return { res, arrayA };
}
Insert cell
Select a data source…
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
((c) => ((b) => b(b))((b) => c((a) => b(b)(a))))(
(f) => (n) => n <= 2 ? 1 : f(n - 1) + f(n - 2)
)(N)
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