function alt(first, ...fragments) {
  for (let fragment of fragments) {
    first = altPair(first, fragment);
  }
  return first;
}
function alt(first, ...fragments) {
  for (let fragment of fragments) {
    first = altPair(first, fragment);
  }
  return first;
}
function alt ( first , ... fragments ) { for ( let fragment of fragments ) { first = altPair ( first , fragment ) ; } return first ; }
Alteration factory.

Creates a alteration NFA for (at least) two NFA-fragments.
Alteration factory .