Public
Edited
Nov 6, 2023
1 star
Insert cell
Insert cell
require.resolve('itertools@2.1.2/+esm')
Insert cell
// itertools = require('itertools@2.1.2')
Insert cell
itertools = import('https://cdn.jsdelivr.net/npm/itertools@2.1.2/+esm')
Insert cell
{
const { izip, cycle } = itertools
const xs = [1, 2, 3, 4]
const ys = ['hello', 'there']
for (const [x, y] of izip(xs, cycle(ys))) {
console.log(x, y);
}
}
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