Skip to content

Instantly share code, notes, and snippets.

@moritz
Created December 26, 2013 14:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moritz/60669e77eb2085ba0a18 to your computer and use it in GitHub Desktop.
Save moritz/60669e77eb2085ba0a18 to your computer and use it in GitHub Desktop.
alternative formulation
Additionally, the sublists are kept "in sync". If alternation branches have
different numbers of positional captures, and a branch with a smaller number
of positional captures matches, the holes in the Match object are filled with
C<Nil> values.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment