Skip to content

Instantly share code, notes, and snippets.

@KamilaBorowska
Created September 29, 2012 08:22
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 KamilaBorowska/3803486 to your computer and use it in GitHub Desktop.
Save KamilaBorowska/3803486 to your computer and use it in GitHub Desktop.
sub from-base($base, *@arrayish) {
[+] @arrayish.reverse.kv.map: $base ** * * *;
}
say from-base 100, 1, 52, 99;
say from-base 1000, 42, 314, 87;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment