function genchilds(t) {
    let fp = finalparameter(t);
    let d = depth(t);

    if (d == 1 && fp === type.float) {
        return sizes(t.length).map((k, i) => ({
            type: type.vec(k),
            name: `a${i}`
        }));
    } else if (d >= 1) {
        return range(t.length).map(i => ({
            type: t.parameters,
            name: `a${i}`
        }));
    }
    return [];
}
//get childs of types that are formed from structs
get childs of types that are formed from structs
get childs of types that are formed from structs
function genchilds(t) {
    let fp = finalparameter(t);
    let d = depth(t);
    if (d == 1 && fp === type.float) {
        return sizes(t.length).map((k, i) => ({
            type: type.vec(k),
            name: `a${i}`
        }));
    } else if (d >= 1) {
        return range(t.length).map(i => ({
            type: t.parameters,
            name: `a${i}`
        }));
    }
    return [];
}
function genchilds ( t ) { let fp = finalparameter ( t ) ; let d = depth ( t ) ; if ( d == 1 && fp === type . float ) { return sizes ( t . length ) . map ( ( k , i ) => ( { type : type . vec ( k ) , name : ` ${ i } ` } ) ) ; } else if ( d >= 1 ) { return range ( t . length ) . map ( i => ( { type : t . parameters , name : ` ${ i } ` } ) ) ; } return [ ] ; }
get childs of types that are formed from structs
get childs of types that are formed from structs