Skip to content

Instantly share code, notes, and snippets.

@dwarring
Last active August 29, 2015 14:07
Show Gist options
  • Save dwarring/73687cc3c23f067f58da to your computer and use it in GitHub Desktop.
Save dwarring/73687cc3c23f067f58da to your computer and use it in GitHub Desktop.
sub repeat(Str $input --> Rat) {
my $phrase := :36($input);
my $l := (36 ** $input.chars) - 1;
$phrase/$l;
}
say (repeat('sixrocks') * 36 ** 40).base(36);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment