Skip to content

Instantly share code, notes, and snippets.

@zoffixznet

zoffixznet/p6.p6 Secret

Created February 25, 2017 23:27
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 zoffixznet/c534fbd74b846d51d6565c3f2f0d779c to your computer and use it in GitHub Desktop.
Save zoffixznet/c534fbd74b846d51d6565c3f2f0d779c to your computer and use it in GitHub Desktop.
my $matcher = { !.DEFINITE and try .can('say') };
.say for sort map *.^name, eager grep $matcher,
gather for CORE::.keys.grep(* ne 'IterationEnd') {
try {.^methods} and take $_ given CORE::{$_};
sub dig ($stash, $level = 0) {
for $stash.keys {
try {.^methods} and take $_ given $stash{$_};
$level < 1 and .keys and .&dig($level+1)
given $stash{$_}.WHO;
}
}(CORE::{$_}.WHO) if try CORE::{$_}.WHO.keys;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment