Public
Edited
Sep 16, 2023
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
function native(fn) {
const repr = cnst(fn);
const res = expr(repr);
res.fn = fn;
return res;
}
Insert cell
Insert cell
T = native(x => y => x)
Insert cell
F = native(x => y => y)
Insert cell
eq = native(str1 => str2 => str1 === str2 ? T.fn : F.fn)
Insert cell
eq('x', 'y', 1, 2).repr
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