function assignLenses(input) {
const boxes = new Array(256).fill().map(() => ({}));
for (const token of input) {
const { label, op, val } = parse(token);
const box = hash(label);
if (op === "=") {
boxes[box][label] = val;
} else {
delete boxes[box][label];
}
}
return boxes;
}