// tok = parsed with htmlTok sS findTag(L tok, S tag) { for (int i = 1; i < l(tok); i += 2) if (isTag(tok.get(i), tag)) ret tok.get(i); null; } sS mapMethodLike findTag(S tag, LS tok) { ret findTag(tok, tag); } // Note the reversed parameters sS mapMethodLike findTag(S tag, S html) { ret findTag(htmlTok(html), tag); }