static TripleRef modifyTripleRef(TripleRef r, int position) { ret r.position() == position ? r : tripleRef(r.triple, position); }