static bool joinedEquals(L<S> tok, S s) {
  int idx = 0;
  for (S t : tok) {
    if (!regionMatches(t, 0, s, idx, l(t))) false;
    idx += l(t);
  }
  ret idx == l(s);
}