`match/case` is probably more idiomatic, but NBD.