WSHEZ4KQQTWFHCOXWMXAQRSI7656VDYODMNAGOLDYJIAM3CZCXXAC
FGIVSUFHH7DN65DYQHDGGDDCHHIB5Z7KKQWI4I3WMERE3BY6IMRQC
5FI6SBEZ6RERERUAIWQJVAY66BEZ7YQOYOUNK2DPOLRGS2X326RAC
VO5OQW4W2656DIYYRNZ3PO7TQ4JOKQ3GVWE5ALUTYVMX3WMXJOYQC
UN2M77YUIQZMPH5CQARPUUK2Q66RHN5J6BIIQQFEJ35DSFSKFFPQC
let contents_res = {
let contents = if contents.len() > 0 {
x
Some(Atom::NewVertex(x)) } else { None
Some(Atom::NewVertex(x))
} else {
None
contents: Some(Atom::NewVertex(contents_res)),
contents,
assert!(!contents.is_empty());
// TODO: this code block looks suspect. Check the correctness.
// If `contents.is_empty()`, we still need to add a // new empty vertex, so the following is ok:
// If `contents.is_empty()`, we still need to add a
// new empty vertex, so the following is ok:
// TODO: this maths is probably unnecessarily complicated