Applies a combinator to the requested leg and returns the new SBasis.
References syten::STensorImpl::STensor::b(), syten::STensorImpl::SBasis::flipped(), and gen_comb().
Referenced by syten::T3N::addScaled(), syten::T3N::apply_op_itrunc(), and syten::T3N::RandomState::generateCompleteState().