pub fn pack_triplets(
document: LinoDocument,
format: MessageFormat,
) -> LinoDocumentExpand description
Rewrites every triplet of document so it fits format: in a binary format
whose arity holds three references but not five, (index: type from to)
becomes (index: (type from to)), whose second part travels as one link of
three references. Under any other format the document stays as it is.
(index: type from to) needs a link of five references, the marker of a
named link and the index included, so under 2..3 the mapping would spell
it as a chain of doublets: nothing would gain from the arity.