static L tok_surroundWordWithAngularBrackets(L tok, S word) { for (int i = 1; i < l(tok); i += 2) if (eqic(tok.get(i), word)) tok = angleBrackets(tok.get(i)); ret tok; }