Skip to content

Instantly share code, notes, and snippets.

@ahalbert
Last active September 23, 2016 22:36
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 ahalbert/0fe8a2eb0cddd1c049214a27d8559f3c to your computer and use it in GitHub Desktop.
Save ahalbert/0fe8a2eb0cddd1c049214a27d8559f3c to your computer and use it in GitHub Desktop.
multi sub formatted($node, ()) { $node; }
multi sub formatted($node, List @codes) {
@codes.head ~ formatted(@codes[1..*-1]);
}
say formatted "END", ('A', 'B', 'C');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment