Skip to main content

build_tuple_code

Function build_tuple_code 

Source
pub fn build_tuple_code(
    tag: &str,
    cmds: &[CmdOrHole],
    children: &[Arc<QTerm>],
) -> Arc<QTerm> ⓘ
Expand description

Build code that reconstructs a tuple: tb(tag).w(..).c(child)..b(), using the sym/leaf shorthands when possible. children are the already-built child expressions spliced at hole positions.