WRMJI3DF2QSI5PX32UVI33XWISQ6B6VNLUPX7CCKUZ3ESJXP37UAC
switch (l) {
SnailItem.num => |val| {
if (val > 9) {
const new = try a.create(SnailNumber);
new.left = SnailItem{ .num = val / 2 };
new.right = SnailItem{ .num = val - val / 2 };
new.parent = node;
if (l == .num and l.num > 9) {
const new = try a.create(SnailNumber);
new.left = SnailItem{ .num = l.num / 2 };
new.right = SnailItem{ .num = l.num - l.num / 2 };
new.parent = node;
switch (r) {
SnailItem.num => |val| {
if (val > 9) {
const new = try a.create(SnailNumber);
new.left = SnailItem{ .num = val / 2 };
new.right = SnailItem{ .num = val - val / 2 };
new.parent = node;
if (r == .num and r.num > 9) {
const new = try a.create(SnailNumber);
new.left = SnailItem{ .num = r.num / 2 };
new.right = SnailItem{ .num = r.num - r.num / 2 };
new.parent = node;