Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
use v6.d;
use Transport {'WWW', :prefix<www->};
say www-get('http://www.heise.de/index.html');
use v6.d;
sub EXPORT(&args) {
my ($module-name, *%tags) = args;
my \module = (require ::($module-name));
my %exports = module.WHO<EXPORT>.WHO<DEFAULT>.WHO.&{.keys Z=> .values};
my %prefixed-exports = %exports.map: { .key.substr(0, 1) ~ %tags<prefix> ~ .key.substr(1..*) => .value };
%prefixed-exports.Map
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment