Created
September 29, 2012 08:22
-
-
Save KamilaBorowska/3803486 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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