Published
Edited
Mar 14, 2019
Insert cell
Insert cell
toCount = tx.map(x => `Count: ${x}`)
Insert cell
Insert cell
toCountEven = tx.comp(tx.filter(x => x % 2 == 0), toCount)
Insert cell
Insert cell
tx.iterator(toCountEven, tx.range())
Insert cell
tx.iterator(tx.comp(toCountEven, tx.delayed(1000)), tx.range())
Insert cell
Insert cell
[...tx.iterator(toCountEven, tx.range(10))]
Insert cell
Insert cell
tx.transduce(
toCountEven,
tx.reducer(() => [], (acc, x) => (acc.add(x), acc)),
new Set(),
tx.range(20)
)
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