Public
Edited
Dec 17, 2022
Paused
1 star
Insert cell
Insert cell
Insert cell
Insert cell
standardOperations = (permutation) => {
const numbers = _.map(permutation, Number);
return {
"|": _.reduce(numbers, (a, b) => a | b),
"||": _.reduce(numbers, (a, b) => a || b),
"&": _.reduce(numbers, (a, b) => a & b),
"&&": _.reduce(numbers, (a, b) => a && b),
"+": _.sum(numbers),
"*": _.reduce(numbers, (a, b) => a * b)
};
}
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